> > a/ Set the owner to nil and destroy it myself
> > b/ Set the owner the same as the parent 
> > c/ Set the owner as the form
> 
> I tend to set Owner as Self AND destroy it myself.  It's always handy to
> have an owner as the component -may- reference it (depend on how its
> written or used).

It shouldn't - Owner is allowed to be empty.

Note that specifying an Owner involves more than setting a field.  It has to
add it into the owners Components list.  Destroying the Object then has
to remove the Object from the owners component list... all unnecessary
work... If you're managing the lifetime yourself - specify the owner as nil.

unnecessary processing is microsofts way of saying buy a bigger computer.

--
Aaron@home


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to