Page 1 of 1

Memory Leak when Exporting to PNG File...

Posted: Fri Mar 06, 2009 6:46 pm
by 10545679
FastMM4 reports a (significant) memory leak when TChart is saved as a PNG using TPNGExportFormat. A simple program that demonstrates the leak can be downloaded from:

http://www.cozmix.com/misc/TeePNGExport.zip

I hope it can be fixed!

CHeers,

Steve Maughan

PS A Hotfix would be great

Posted: Mon Mar 09, 2009 9:00 am
by yeray
Hi Steve,

What TeeChart version are you using? Here with the actual sources it seems to work fine.

Note that I had to add the TChart to your project and the FastMM4 at the beginning of your dpr.

Hmmmm,

Posted: Mon Mar 09, 2009 2:03 pm
by 10545679
Hi Yeray,

Thanks for the note. I'm not sure what happened to the demo. I've corrected it by adding a TChart and the reference to FastMM4 - the same link will download the new version.

I'm using version 8.04.11395 with source code on a Vista x64 machine and Delphi Pro 2009. I'm amazed that you don't have the leak - it happens ever time for me. Can someone else see if they can reproduce it?

Thanks,

Steve

Posted: Mon Mar 09, 2009 4:08 pm
by yeray
Hi Steve,

Yes I've been able to reproduce this with Win2003 64bits and the 8.04 TeeChart installer. But then I've tried with the actual source code and it seems to work fine so, as you are a source code customer, I've sent to your registered mail account a link to download them. Could you please try if they work fine for you too?

It Works!!

Posted: Mon Mar 09, 2009 5:37 pm
by 10545679
Yeray,

The new source code fixes the problem!! Great!

Thanks,

Steve