Title: Message
Yeah, I would be hesitant too.
 
WRT forms however, what you can safely do is call Release (which is introduced on TCustomForm).  This will free the form, but only when all event handlers, etc. have finished processing.
 
HTH,
 
Conor


From: Paul Mckenzie [mailto:[EMAIL PROTECTED] 
 
I am very hesitant about calling Free within the event handler....
 
[Snip] from the Help:
Warning: Never explicitly free a component within one of its own event handlers or the event handler of a component it owns or contains. For example, don’t free a button, or the form that owns the button, in its OnClick event handler.

[snip]

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to