[lazarus] Owner and parent must be equal?
Vincent Snijders
vslist at zonnet.nl
Mon Aug 11 15:49:13 EDT 2003
On Mon, 11 Aug 2003 22:24:20 +0200
Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> On Mon, 11 Aug 2003 20:42:05 +0200
> Vincent Snijders <vslist at zonnet.nl> wrote:
>
> > Hi,
> >
> > Lazarus has a small memory leak in the compiler options form.
> >
> > I changed line 4388 in CompilerOptions.pp to:
> > edtUnitOutputDir := TEdit.Create(grpUnitOutputDir);
> > i.e. making the owner equal to the parent groupbox.
> > Since it was solved then, I didn't research further, why the owner
> > and the parent of a control in a GroupBox need to be the same.
>
> It does not.
Didn't thinks so either.
>
>
> > Normally
> > grpCompiler is destroyed (almost) at the same time, so why doesn't
> > it the edtUnitOutputDir?
>
> When edtUnitOutputDir was created, the old "owner" grpCompiler was not
> yet created (i.e. nil).
Thanks for explaining. I now understand.
Vincent.
More information about the Lazarus
mailing list