Page 1 of 1

Problem with TPNGExportFormat

Posted: Tue Nov 10, 2009 10:32 pm
by 9340420
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

Re: Problem with TPNGExportFormat

Posted: Wed Nov 11, 2009 3:24 pm
by yeray
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.