Jump to content
Software FX Community
DanielL_550

System.OverflowException: Overflow error in the .NET control with Pie Charts

Recommended Posts

 Francisco,

We are getting overflow exceptions when rendering Pie Charts with the .NET Control. We don't always get the exceptions, it is just with certain data with certain controls on the screen. This is the stack trace.

************** Exception Text **************

System.OverflowException: Overflow error.

at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

at System.Drawing.Graphics.DrawRectangle(Pen pen, Int32 x, Int32 y, Int32 width, Int32 height)

at System.Drawing.Graphics.DrawRectangle(Pen pen, Rectangle rect)

at ChartFX.NetIEClient.Internal.GraphicsEx.DrawRectangle(Pen pen, Rectangle r)

at ChartFX.NetIEClient.h.a(DrawText A_0, String A_1, Point A_2)

at ChartFX.NetIEClient.Galleries.Pie.a(Int32 A_0, PaintMarkBase A_1, Int32& A_2, Int32& A_3)

at ChartFX.NetIEClient.h.r()

at ChartFX.NetIEClient.h.a(IFrame A_0, Int32& A_1)

at ChartFX.NetIEClient.Chart.a(PaintBar A_0, IGraphicsEx A_1)

at ChartFX.NetIEClient.ao.a(PaintEventArgs A_0)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I have attached a project that shows the problem. The data is in an XML file. When you run the application as-is, it will  throw an OverflowException.  If you change the StartAngle attribute value to 45 in the <chartfx7galleries:Pie> tag in the .aspx file then it will render okay. When you display the Toolbar and then click the 3D button, it will throw an exception.  Different data will cause the exception at different start angles so I can

Share this post


Link to post
Share on other sites

Is someone looking into this issue?  I've been having the same problem.  In fact, the original poster's test application is exhibiting the exact same behavior that I've been seeing.  I haven't been able to find any kind of work around that works for all cases.  I've tried changing various attributes such as the font size and start angle, which may fix the problem for the current data but throws an overflow exception for different data.  As a result, I can't reliably use the Pie Chart.  Even though it works fine most of the time, I never know when it's going to crash.

Could we please have a status as to whether or not any progress is being made on this issue by SoftwareFX staff?

Thank you.

Share this post


Link to post
Share on other sites

Francisco,

Can someone look at this issue to see what we are doing wrong? We have a customer that really needs us to get this fixed. Is there something else I need to provide to you so you can duplicate this problem?

Thank you.

Share this post


Link to post
Share on other sites

Thank you Francisco. We really appreciate it. I will contact support for the service pack. You have a great product and it is very rare that we find issues like this one. Thank you for the excellent customer support.

 

Share this post


Link to post
Share on other sites

 Hi,

 We are getting a very similiar error for our charts.  Here is the stack trace:

 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 SoftwareFX.ChartFX.Base.GraphicsEx.DrawLine(Pen pen, Int32 x, Int32 y, Int32 x2, Int32 y2) at SoftwareFX.ChartFX.GalleryObj.Line.3J(PaintMarkBase 0Y0, Int32 0Y1, Int32 0Y2, Int32 0Y3, Int32 0Y4, Int32 0Y5) at SoftwareFX.ChartFX.GalleryObj.Line.3K(PaintMarkBase 0Y6, Int32 0Y7, Int32 0Y8, Int32 0Y9, Int32 0YA) at SoftwareFX.ChartFX.GalleryObj.Line.2Z(Int32 0XW, PaintMarkBase 0XX, Int32& 0XY, Int32& 0XZ) at SoftwareFX.ChartFX.1N.MQ(Int32& 29B, Int32& 29C) at SoftwareFX.ChartFX.1N.MP() at SoftwareFX.ChartFX.ChartCore.E6(1N 1OG, Rectangle& 1OH, Int32& 1OI) at SoftwareFX.ChartFX.ChartCore.E5(PaintBar 1OD, IGraphicsEx 1OE, Rectangle& 1OF) at SoftwareFX.ChartFX.0V.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 We are using version 6.2.1486.27906.  Is this fixed in a later version?

 

 

 

Share this post


Link to post
Share on other sites

Our team was able to correct this problem by not setting the extent of the AxisSystem to Infinity. Apparently this causes the chart to display with a red X and then crash with the same error.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...