[Lazarus] Unreleased GDIObjects in GTK1 widgetset

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Jul 13 11:15:05 CEST 2008

On Sat, 12 Jul 2008 16:53:56 +0200
"Graeme Geldenhuys" <graemeg.lists at gmail.com> wrote:

> Hi,
> I am trying out the latest Lazarus Data Desktop application (included
> with Lazarus). I got the latest svn versions of FPC and Lazarus. It
> seems the LCL-GTK1 widgetset is not released or freeing all objects.
> This happens is more LCL-GTK1 based applications, so isn't specific to
> Lazarus Data Desktop.
> The error message when the application quits:
> ------------------------------
> graemeg at graemeg-laptop:/opt/lazarus_svn/tools/lazdatadesktop$ ./lazdatadesktop
> [TGtkWidgetSet.Destroy] WARNING: There are 2 unreleased GDIObjects, a
> detailed dump follows:
> [TGtkWidgetSet.Destroy]   GDIOs: B78B1220 B78B12E0
> [TGtkWidgetSet.Destroy]   gdiBitmap: 2
> ------------------------------

Please report the bug.

> What's also weird is that it references GDI (GDIObject and gdiBitmap),
> but isn't GDI a Windows thing?? What's it got to do with a Linux GTK1
> application?

It's the gtk implementation of the GDI handle object, that the
SelectObject function of the LCL interface expects.


More information about the Lazarus mailing list