Memory Leak when Exporting to PNG File...

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Steve Maughan
Newbie
Newbie
Posts: 13
Joined: Mon Jun 25, 2007 12:00 am

Memory Leak when Exporting to PNG File...

Post by Steve Maughan » Fri Mar 06, 2009 6:46 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 09, 2009 9:00 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Steve Maughan
Newbie
Newbie
Posts: 13
Joined: Mon Jun 25, 2007 12:00 am

Hmmmm,

Post by Steve Maughan » Mon Mar 09, 2009 2:03 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 09, 2009 4:08 pm

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Steve Maughan
Newbie
Newbie
Posts: 13
Joined: Mon Jun 25, 2007 12:00 am

It Works!!

Post by Steve Maughan » Mon Mar 09, 2009 5:37 pm

Yeray,

The new source code fixes the problem!! Great!

Thanks,

Steve

Post Reply