Registriert seit: 27. Apr 2006
Ort: München
556 Beiträge
Delphi 7 Professional
|
Re: Wann werden Exception-Objekte freigegeben?
8. Sep 2009, 22:19
Gerade ausprobiert:
Delphi-Quellcode:
type
EMyException = class( Exception)
public
destructor Destroy; override;
end;
destructor EMyException.Destroy;
begin
ShowMessage(' Destroy');
inherited;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
try
raise EMyException.Create(' Test');
except
on e: Exception do
ShowMessage(' OnExcept');
end;
ShowMessage(' End');
end;
Reihenfolge: OnExcept -> Destroy -> End
Jabber: littleDave@jabber.org
in case of 1 is 0 do external raise while in public class of object array else repeat until 1 is 0
|