Not necessarily. Judicious and disciplined use of constructors and destructors can minimise the need to rely on a call such as FreeAndNil.
Also, as I said before, Release can be the correct call (from Help): Destroys the form and frees its associated memory. procedure Release; Description Use Release to destroy the form and free its associated memory. Release does not destroy the form until all event handlers of the form and event handlers of components on the form have finished executing. Any event handlers of the form should use Release instead of Free. Failing to do so could lead to an access violation. Cheers, Conor -----Original Message----- From: Alistair George [mailto:[EMAIL PROTECTED] Hello Conor, Cheers, this is much better way to do it: FreeandNil(dmon.Form1); Thanks for the explicit instructions on avoiding the try except under all circumstances - I am too lazy sometimes now I stand corrected. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
