Problem with TPNGExportFormat

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Problem with TPNGExportFormat

Post by Normand Peladeau » Tue Nov 10, 2009 10:32 pm

I use the following code in one application:

Code: Select all

      with TPNGExportFormat.Create do
          try
            Panel := AChart;
            PixelFormat := pf24Bit;
            SaveToFile(Filename);
          finally
            Free;
          end;
I tried to use this code in another application, but I got the following message:

Access Violation at address 0012F6A0. Write of address 00000001.

Any idea what may be causing this and why it works in a project but not the other?

Normand

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

Re: Problem with TPNGExportFormat

Post by Yeray » Wed Nov 11, 2009 3:24 pm

Hi Normand,

I've tested that code with a Bar series, a Line series and a pie series and it seems to work fine in all that situations.
We need a consistent way to reproduce the error to determine the cause and try to fix it. So please, try to arrange a simple example project we can run as-is to reproduce the problem here.

Thanks in advance.
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

Post Reply