> Question - is the new component automatically freed when the form is
> destroyed?
>
> I've normally kept a list of components created on the fly and
specifically
> freed them - maybe I don't need to.
>
> Stephen
>
That's why I like to create the component with owner of self (ie the form).
When the form is destroyed the component will automatically be destroyed. Of
course it always depends what you are doing. Chrissy mentioned she had
problems using .Create(self) but that is probably being caused by code
elsewhere - the concept works.
David.
---------------------------------------------------------------------------
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"