[lazarus] lazarus very gdi-resource hungry on windows 98

Micha Nelissen M.Nelissen at student.tue.nl
Tue Dec 2 09:56:33 EST 2003


Vincent Snijders wrote:

> Attached is the source code of two test programs to show the problem.
> The first is gdileak.exe shows that deleting a gdi-object before
> deselecting creates a gdi leak. It contains a boolean const DoItRight.
> Set this to true to prevent this gdileak.
> 
> The second program lclgdileak uses the lcl to create such a program. It
> has the same problems. 
> 
> I have no idea how to solve it. Maybe these programs can help testing.

I have tried to fix the leak by calling 'Changing' before freeing the 
handle, which deselects the handle from the canvas.

Can you test again on win98? I am unsure how to test on win2k.

Micha.







More information about the Lazarus mailing list