System.Overflow exception
Posted: Mon Jun 19, 2006 10:21 pm
I haven't been able to get a response for over a week from Pro Support for this problem, so I'll try the forums...
I recently downloaded TeeChart.net source code version 2.0.2306.26231.
When I build from source I get the following exception when trying to plot a large negative number:
System.OverflowException: Overflow error. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2) at Steema.TeeChart.Drawing.Graphics3DGdiPlus.LineTo(Int32 x, Int32 y) at Steema.TeeChart.Drawing.Graphics3D.LineTo(Int32 x, Int32 y, Int32 z) at Steema.TeeChart.Styles.FastLine.DrawValue(Int32 index) at Steema.TeeChart.Styles.FastLine.Draw() at Steema.TeeChart.Styles.Series.DrawSeries() at
...
The binary TeeChart.dll is working fine. So, in the offending functions I looked at the binary source using .NET reflector and it is significantly different than the source code provided by Steema. I pasted in the code from Axis.CalcYPosValue() and Axis.CalcXPosValue() to my build, and the exception goes away (not a surprise based on looking at the code).
So, I am very displeased that I have not been able to get a response from Steema.
I am also very displeased that the source code from Steema does not match the corresponding code in the binary from Steema.
My expectation is that when I get source code, it is exactly the same as whatever is being used by the current release. Why is this not so?
I recently downloaded TeeChart.net source code version 2.0.2306.26231.
When I build from source I get the following exception when trying to plot a large negative number:
System.OverflowException: Overflow error. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2) at Steema.TeeChart.Drawing.Graphics3DGdiPlus.LineTo(Int32 x, Int32 y) at Steema.TeeChart.Drawing.Graphics3D.LineTo(Int32 x, Int32 y, Int32 z) at Steema.TeeChart.Styles.FastLine.DrawValue(Int32 index) at Steema.TeeChart.Styles.FastLine.Draw() at Steema.TeeChart.Styles.Series.DrawSeries() at
...
The binary TeeChart.dll is working fine. So, in the offending functions I looked at the binary source using .NET reflector and it is significantly different than the source code provided by Steema. I pasted in the code from Axis.CalcYPosValue() and Axis.CalcXPosValue() to my build, and the exception goes away (not a surprise based on looking at the code).
So, I am very displeased that I have not been able to get a response from Steema.
I am also very displeased that the source code from Steema does not match the corresponding code in the binary from Steema.
My expectation is that when I get source code, it is exactly the same as whatever is being used by the current release. Why is this not so?