Jump to content
Software FX Community

Overflow error

User (Legacy)

Recommended Posts


Occasionally My Chart Component get crashed and moreover its behavior is

not consistent .

It throw an "Overflow error." System Exception.

The Call stack show that this exception raise from


Could you please help me to trace out the proper reason.

I am attaching the Exception object and its Call stack.



////////////////////////// Exception Object and its Call Stack


- $exception {System.OverflowException} System.OverflowException

- System.ArithmeticException {"Overflow error." } System.ArithmeticException

- System.SystemException {"Overflow error."} System.SystemException

- System.Exception {"Overflow error." } System.Exception

System.Object {System.OverflowException} System.Object

_className null string

_COMPlusExceptionCode -532459699 int

_exceptionMethod <undefined value> System.Reflection.MethodBase

_exceptionMethodString null string

_helpURL null string

_HResult -2146233066 int

_innerException { } System.Exception

_message "Overflow error." string

_remoteStackIndex 0 int

_remoteStackTraceString null string

_source null string

+ _stackTrace {System.Array} System.Object

_stackTraceString null string

_xcode -532459699 int

_xptrs 0 int

HelpLink null string

HResult -2146233066 int

InnerException { } System.Exception

Message "Overflow error." string

Source "System.Drawing" string

StackTrace " at System.Drawing.Graphics.CheckErrorStatus(Int32

status)\r\n at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32

y1, Int32 x2, Int32 y2)\r\n at

SoftwareFX.ChartFX.Base.GraphicsEx.DrawLine(Pen pen, Int32 x, Int32 y, Int32

x2, Int32 y2)\r\n at SoftwareFX.ChartFX.GalleryObj.Line.3J(PaintMarkBase

0XB, Int32 0XC, Int32 0XD, Int32 0XE, Int32 0XF, Int32 0XG)\r\n at

SoftwareFX.ChartFX.GalleryObj.Line.3K(PaintMarkBase 0XH, Int32 0XI, Int32

0XJ, Int32 0XK, Int32 0XL)\r\n at

SoftwareFX.ChartFX.GalleryObj.Line.2Z(Int32 0X7, PaintMarkBase 0X8, Int32&

0X9, Int32& 0XA)\r\n at SoftwareFX.ChartFX.1N.MF(Int32& 27Q, Int32&

27R)\r\n at SoftwareFX.ChartFX.1N.ME(Int32& 27O, Int32& 27P)\r\n at

SoftwareFX.ChartFX.1N.MD()\r\n at SoftwareFX.ChartFX.ChartCore.E2(1N 1N9,

Rectangle& 1NA, Int32& 1NB)\r\n at

SoftwareFX.ChartFX.ChartCore.E1(PaintBar 1N6, IGraphicsEx 1N7, Rectangle&

1N8)\r\n at SoftwareFX.ChartFX.0V.OnPaint(PaintEventArgs e)\r\n at

System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16

layer, Boolean disposeEventArgs)\r\n at

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

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

System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r\n at

System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r\n at

System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg,

IntPtr wparam, IntPtr lparam)\r\n at

System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n at


ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,

Int32 pvLoopData)\r\n at

System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,

ApplicationContext context)\r\n at

System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,

ApplicationContext context)\r\n at

System.Windows.Forms.Application.Run(Form mainForm)\r\n at

DataAcquisition.DataAcquisitionForm.Main() in


rm1.cs:line 200" string


Link to comment
Share on other sites

The crash is occurring during Paint which doesn't tell us much about the


Do you have a test case that reproduces the problem ?

Something very specific must be happening for this error to occur so unless

we can reproduce it will be very hard for us to find the cause.

Are you using the latest SP ? What version of the product are you using ?



Software FX, Inc.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...