On Sat, 2 Dec 2006 11:37:27 +0100
"SALVATORE COPPOLA" <[EMAIL PROTECTED]> wrote:

>  Mattias Gaertner wrote: 
> On Fri, 1 Dec 2006 21:33:01 +0100
> "SALVATORE COPPOLA" <[EMAIL PROTECTED]> wrote:
> 
>   
> Hi,
> sometimes peoples say that lazarus consumes memory. Maybe the example
> show an issue (FPC or Lazarus issue?) i.e. If a parent control is
> freed is child should also be freed kind regards, Salvatore
>     
> 
> StringGrid1 is owned by the form and therefore freed when the form is
> freed. Of course you can free it earlier manually.
> 
>   
> 
> I see also the Graeme's mail, but what's the diff (if possible in few
> words), between Owner and Parent :-[ ?, 

Parent is the visually relationship (Parent.Controls[]).
All other is Owner: freeing, streaming, notifications
(Owner.Components[])

> or in the case of controls
> that accept controls (TPanel etc.) should be for child Owner = Parent?

No. The only place, where Owner and Parent are related is during
streaming. Borland did this only for readability.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to