Title: Message
|
In the
case of a form override OnClose and set Action to caFree;.
procedure TMyForm.FormClose(Sender: TObject; var Action:
TCloseAction); begin
Action := caFree;
end;
Stacey
But I want to self Free - ie immediately after
executing its event it frees itself (eg OnClick).
Regards Paul McKenzie Analyst Programmer SMSS
Ltd.
----- Original Message -----
Sent: Thursday, March 18, 2004 4:07
PM
Subject: RE: [DUG] Self Freeing
Explicitly free it when you are done with it (maby add it to a list?)
or set its owner to something valid so when the owner component is freed the
dynamically created component will also be freed.
Stacey
What is the best way for a dynamically
created component to free itself ?
Regards Paul McKenzie Analyst
Programmer SMSS Ltd.
_______________________________________________ Delphi mailing
list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
|
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi