Page 1 of 1
System Error
Posted: Thu May 31, 2012 3:19 pm
by 16562608
Hi,
we are getting an error, when we try to save a chart to jpg or to png using either
Code: Select all
TeeSaveToPNG(GlobalRPChart, ChartImageFile, 0, 0);
or
Code: Select all
TeeJPEG.TeeSaveToJPEGFile(GlobalRPChart, ChartImageFile, false, jpBestQuality, 100, 0, 0);
The error message is:
System Error. Code: 8. Not enough storage is available to process this command
The error occurs only on a
Windows Web Server 2008 R2 but not on other machines. Any idea?
Thanks and regards
Markus
Re: System Error
Posted: Tue Jun 05, 2012 8:36 am
by 10050769
Hello Markus,
Sorry for the delay. We did some tests to try to reproduce your problem here, I am afraid we cannot reproduce your problem here and we have gotten good results making the test using last version of TeeChartVCL 2012 and Windows Server 2008 with next code:
Code: Select all
Uses TeePNG, Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.AddSeries(TBarSeries).FillSampleValues;
TeeSaveToPNG(Chart1, 'C:\tmp\Chart1.png', 0, 0);
end;
Can you please check if using my code appears your problem? If it works fine but using your application the problem persist, please send us a simple project where the problem appears so we can try to reproduce it here.
Thanks,
Re: System Error
Posted: Tue Jun 05, 2012 12:37 pm
by 16562608
Hi Sandra,
ok but I am allready using the same procedure "TeeSaveToPNG" as you did. But our application is a web application compiled with Delphi XE2 and TChart 2012 Pro. But now I made a small offline app with exactly your code and it worked with no problem on that server. But with two restrictions:
1. It is an offline form based app not a web app
2. It was compiled with Delphi 2010
The latter because I am currently facing an error when I try starting an application with a TChart on a form in Delphi XE2. The exception is:
EFilerError: "Class with name TChartAxisTitle allready exists" (Translated from german)
Thanks again
Regards Markus
Re: System Error
Posted: Wed Jun 06, 2012 7:29 am
by 10050769
Hello Markus,
Thanks for your information, but would be very helpful for us if you can send a simple project so we can reproduce your problem here to try to find a good solution for you.
Thanks,