I don't think I agree with the use of this flag since it may result in slack
practices (that is, people may start to assume that every form frees itself,
and when it doesn't...). The object that creates something owns it and as
such should free it.


-Andreas

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of vss
Sent: Friday, 21 February 2003 11:36
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Showmodal problems


Also, on the close event of the form, do

  Action:=caFree;

This will free the form for you and you wont have to do the finally,
free bit.

Jeremy

-----Original Message-----
From: Alistair George <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Fri, 21 Feb 2003 11:27:07 +1300
Subject: [DUG]:  Showmodal problems

> Called Wolf; sorry - had some code prior to the showmodal call that had
> nothing to do
> with the form, but was not freed on exit.
> :-(
>
> Al+
>
> -----------------------------------------------------------------------
> ----
>     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/

---------------------------------------------------------------------------
    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/

---------------------------------------------------------------------------
    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/

Reply via email to