Deine Funktion funktioniert bei mir übrigens auch unter Delphi7 nicht:
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var tmp: TObject;
begin
tmp := TObject.Create;
tmp.Free;
if Assigned(tmp) then
ShowMessage('Assigned nachher!');
if ObjektAssigned(tmp) then
ShowMessage('ObjektAssigned nachher!');
end;
Beide MessageBoxen werden angezeigt.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."