On Saturday 23 June 2007 12:44, Marc Weustink wrote:
> zeljko wrote:
> > On Saturday 23 June 2007 10:34, Marc Weustink wrote:
> >> zeljko wrote:
>
> [snip]
>
> >>> 3. Create form (with n children) like with TForm2.Create(NIL) do ...
> >>> RESULT = NOT OK, heaptrc screams about unfreed memory blocks
> >>> Adding CloseAction = caFree in OnClose event of form do the job here
> >>> ...
> >>>
> >>> So is it "a must" to add CloseAction := caFree while closing form
> >>> created with NiL parameter ?
> >>
> >> Yes, since it has no owner, you are responsible to free it.
> >
> > hmm .. but why it doesn't free it's children ?
>
> How did you test ?
I've inserted writeln('TSomeChild.DestroyHandle()') in DestroyHandle() of
child control (TQtWSExtCtrls->TQtWSCustomCheckGroup), and enabled -gh.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives