Memory leak when using TTeeGDIPlus
Posted: Thu Jun 10, 2010 9:38 am
Hi,
it seems there is a memory leak when using TTeeGDIPlus. It can be reproduced in the sample project (Delphi 2010) I've attached.
Just run the code and then resize the form a couple of times and then close it. I've also attached a screenshot of the FastMM report that pops up.
I think it's caused by TGDIPlusCanvas.InitWindow() which is called by the draw routine.
It creates a TTeeCanvas3D object each time it is called but doesn't free it
...
begin
IXORCanvas:=TTeeCanvas3D.Create;
Could you please take a look at it?
Regards,
Amadeus
it seems there is a memory leak when using TTeeGDIPlus. It can be reproduced in the sample project (Delphi 2010) I've attached.
Just run the code and then resize the form a couple of times and then close it. I've also attached a screenshot of the FastMM report that pops up.
I think it's caused by TGDIPlusCanvas.InitWindow() which is called by the draw routine.
It creates a TTeeCanvas3D object each time it is called but doesn't free it
...
begin
IXORCanvas:=TTeeCanvas3D.Create;
Could you please take a look at it?
Regards,
Amadeus