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

Vincent Snijders vslist at zonnet.nl
Tue Dec 2 17:13:12 EST 2003


On Tue, 02 Dec 2003 15:48:07 +0100
Micha Nelissen <M.Nelissen at student.tue.nl> wrote:

> 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.

The leak has been fixed. I don't think you could test it on win2k,
because there no leak could be detected (I don't think it occurred on
win2k).

Thanks,
Vincent. 






More information about the Lazarus mailing list