On Wednesday 29 March 2006 08:53, johnf wrote:
> On Wednesday 29 March 2006 08:41, Mattias Gaertner wrote:
> > On Wed, 29 Mar 2006 18:23:48 +0200
> >
> > Marc Weustink <[EMAIL PROTECTED]> wrote:
> > > johnf wrote:
> > > > Using a terminal I start my app. After opening and closing a form
> > > > (not the main form) and then closing the main form I get the
> > > > following:
> > > >
> > > > [TGtkWidgetSet.Destroy] WARNING: There are 4 unreleased GDIObjects, a
> > > > detailed dump follows:
> > >
> > > This is an internal message for the gtkwidgetset only. When using the
> > > LCL, this messasage should never occur.
> >
> > This appear, when for instance you forgot to free four TBitmap, so it is
> > not an internal message only.
> >
> > > > I guess somehow I'm not closing the form correctly. Can anyone
> > > > provide a clue or a direction for me to check what is still open.
> > > > Or maybe a link that describes what steps to take to discover the
> > > > unreleased objects.
> > >
> > > What is on your forms ? How are you closing your forms ?
> >
> > Use heaptrc (compiler options -> linking).
> > If this does not show the unreleased memory, then compile the LCL clean
> > with -dDebugLCLComponents.
> >
> >
> > Mattias
>
> You are correct. It is coming from my imagelist. Now I include
> ImageList1.Destroy; in my formclose procedure.
>
> Closing the main form with form1 still open still leaves 4 unreleased
> GDIObjects. However, when closing form1 first and then closing the main
> form leaves:
> 1 unreleased GDIObjects.
>
> So I still don't have it right. Any other suggestion or hints?
>
> John
OK now I understand. Anything that has a graphic is causing the unreleased
GDIObjects.
So the question is what is the correct way to close the form with graphics?
Or is this some sort of bug? Or did I cause this issue? I placed the
graphics in a sub-directory. Or is there something I'm missing with respect
to how to include the graphics?
thanks for you help.
John
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives