Page 1 of 1

Underflow/Overflow error exporting a Contour graph to JPEG.

Posted: Wed Jan 16, 2008 3:37 pm
by 13047444
I have an application with multiple graphs, which I have wrapped in a graph class. I am able to successfully export the various 2-dimensional graphs to JPeg, but when I attempt to export a 3D Surface graph, I get an System:ArithmeticExpression error in TeeChart.dll (Overflow or underflow in the arithmetic operation).

I am working in VS 2005, using C#.

Here is the function I am using to save the graphs:
public void SaveGraph(string FileName)
{

Steema.TeeChart.Export.JPEGFormat jPEG = M_CurrentGraph.Export.Image.JPEG;

jPEG.GrayScale = true;
jPEG.Height = 500;
jPEG.Width = 700;
jPEG.Quality = 100;
jPEG.Save(FileName);

}

The error occurs upon the declaration and assignment of the variable jPEG.

Here is the stack trace:
TeeChart.dll!Steema.TeeChart.Export.ImageExportFormat.ImageExportFormat(Steema.TeeChart.Chart c = {Steema.TeeChart.Chart}) + 0xaa bytes
TeeChart.dll!Steema.TeeChart.Export.JPEGFormat.JPEGFormat(Steema.TeeChart.Chart c = {Steema.TeeChart.Chart}) + 0x25 bytes
TeeChart.dll!Steema.TeeChart.Export.ImageExport.JPEG.get() + 0x2f bytes
> SensorMetrix.exe!SensorMetrix.SM_Graph.SaveGraph(string FileName = "C:\\Film_Thickness\\Part #1-1-Gray-080116101540.JPG") Line 565 + 0x22 bytes


Anyone have any suggestions?

Thanks!

Posted: Thu Jan 17, 2008 8:59 am
by narcis
Hi GrayMoody,

I'm not able to reproduce this issue here using latest TeeChart for .NET v3 release available at the client area, which is build 3.2.2930.22968. Which TeeChart version are you using exactly?

Thanks in advance.

Posted: Fri Jan 18, 2008 2:30 pm
by 13047444
Hi Narcis,

Thanks for taking a look at it. I'm using Build 3.2.2930.22968, which I just recently downloaded on 1/15. I had been using a prior version, but I had the 'Export to JPEG results in a solid black JPEG' error, which Build 3.2.2930.22968 successfully fixed.

Is there anything else I could provide to aid in diagnosising this?

Thanks again,
Gray

Posted: Fri Jan 18, 2008 2:56 pm
by narcis
Hi Gray,

Thanks for the information.

Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.