[Lazarus] Canvas Save/RestoreHandleState not destroying gdiobjects (GTK2 Linux)

cobines cobines at gmail.com
Sun Apr 18 17:57:20 CEST 2010


2010/4/18 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> On Sun, 18 Apr 2010 13:00:48 +0200
> cobines <cobines at gmail.com> wrote:
>> The function writing the error is in lcl/interfaces/gtk/gtkwinapi.inc
>> TGtkWidgetSet.DeleteObject: RaiseGDIObjectIsStillUsed. A comment
>> inside there says:
>>
>> "
>>     // do not raise an exception, because this is a common bug in many programs
>>     // just give a warning
>> "
>>
>> Does anyone know what common bug does this comment refer to?
>
> Calling DeleteObject even though the object is still used in a device
> context.

Ah, I see. So, since I'm not using DeleteObject directly in my program
this comment doesn't apply and must be a bug in Lazarus. Ok, thanks
for clarifying. I'll create a bug report now.

--
cobines




More information about the Lazarus mailing list