TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
Normand Peladeau
- Newbie
- Posts: 30
- Joined: Tue Dec 28, 2004 5:00 am
-
Contact:
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
- Posts: 9613
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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.