--- In [email protected], "fishsqzr" <[EMAIL PROTECTED]> wrote: > --- In [email protected], "dalewolver" <[EMAIL PROTECTED]> wrote: > > Whats the guidelines on when to use release and when to use close. > For > > example I have a form that I want to free from another form. Should > I > > use release or should I call its close method > > Delphi Help suggests you should always use Realease in such cases, as > it waits until all message and event handlers have finished executing > before destroying the form. I've been doing it that way for years and > it seems to work as advertised.
The problem with Release, is that it doesn't set the form to nil. The solution I found is to call Close method followed by FreeAndNil. Hope this helps... ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h6capil/M=362335.6886445.7839731.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124847097/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

