Jump to content
Software FX Community

System.OverflowException


User (Legacy)

Recommended Posts

Hi there,

I have a problem with an application I have, it runs for some time, and

updates a chart based on some data from a database.

The update occurs every 5 seconds or so, by changing the datasource of the

chart.

The chart is updated in another thread.

The application is built app like this:

MainForm with a control added which extends the

SoftwareFX.ChartFX.Lite.Chart class.

When the control's constructor is called, then another thread is started in

the controls' Run method, which updates the chart every 5 seconds.

When the application have run a couple of minutes it crashes with the

following error:

System.OverflowException: Overflow error.

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

at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y,

Int32 width, Int32 height)

at SoftwareFX.ChartFX.Lite.Base.D.FillRectangle(Brush brush, Int32 x,

Int32 y, Int32 w, Int32 h)

at SoftwareFX.ChartFX.Lite.0V.GY(IGraphicsEx 1EB, Int32 1EC, Int32 1ED,

Int32 1EE, MarkerShape 1EF, Brush 1EG, Pen 1EH, Pen 1EI, Boolean 1EJ, Font

1EK, Image 1EL)

at SoftwareFX.ChartFX.Lite.0V.3W(Int32 1EP, Int32 1EQ, Int32 1ER, Int32

1ES)

at SoftwareFX.ChartFX.Lite.0V.3X(Int32 1EM, Int32 1EN, Int32 1EO)

at SoftwareFX.ChartFX.Lite.GalleryObj.Line.6O(E 0OM, Int32 0ON, Int32

0OO, Int32 0OP, Int32 0OQ, Boolean 0OR)

at SoftwareFX.ChartFX.Lite.GalleryObj.Line.6J(Int32 0O7, E 0O8, Int32&

0O9, Int32& 0OA)

at SoftwareFX.ChartFX.Lite.0V.GE(Int32& 1CO, Int32& 1CP)

at SoftwareFX.ChartFX.Lite.0V.GD(Int32& 1CM, Int32& 1CN)

at SoftwareFX.ChartFX.Lite.0V.GC(IGraphicsEx 1CL)

at SoftwareFX.ChartFX.Lite.Chart.9A(0V 0UK, IGraphicsEx 0UL, Rectangle&

0UM)

at SoftwareFX.ChartFX.Lite.Chart.99(PaintBar 0UH, IGraphicsEx 0UI,

Rectangle& 0UJ)

at SoftwareFX.ChartFX.Lite.0O.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.ControlNativeWindow.OnMessage(Message& m)

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

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,

Int32 msg, IntPtr wparam, IntPtr lparam)

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

at

System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho

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

Int32 pvLoopData)

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

ApplicationContext context)

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

ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

at com.klarisma.DEGAMIS.app.MainForm.Main() in

x:\kode\degamis\degamis\mainform.cs:line 169

Im a bit unsure as hos I am to debug this error as it happens deep inside

the ChartFX lib, and im not even sure that it is inside the library that the

problem is, but the root of the error is at the lib.

My environment is:

Windows XP Prof SP1a

VS.NET 2003 Enterprise Arc.

ChartFX Lite version: 6.0.1551.24517

Link to comment
Share on other sites

Hi there,

I have a problem with an application I have, it runs for some time, and

updates a chart based on some data from a database.

The update occurs every 5 seconds or so, by changing the datasource of the

chart.

The chart is updated in another thread.

The application is built app like this:

MainForm with a control added which extends the

SoftwareFX.ChartFX.Lite.Chart class.

When the control's constructor is called, then another thread is started in

the controls' Run method, which updates the chart every 5 seconds.

When the application have run a couple of minutes it crashes with the

following error:

System.OverflowException: Overflow error.

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

at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y,

Int32 width, Int32 height)

at SoftwareFX.ChartFX.Lite.Base.D.FillRectangle(Brush brush, Int32 x,

Int32 y, Int32 w, Int32 h)

at SoftwareFX.ChartFX.Lite.0V.GY(IGraphicsEx 1EB, Int32 1EC, Int32 1ED,

Int32 1EE, MarkerShape 1EF, Brush 1EG, Pen 1EH, Pen 1EI, Boolean 1EJ, Font

1EK, Image 1EL)

at SoftwareFX.ChartFX.Lite.0V.3W(Int32 1EP, Int32 1EQ, Int32 1ER, Int32

1ES)

at SoftwareFX.ChartFX.Lite.0V.3X(Int32 1EM, Int32 1EN, Int32 1EO)

at SoftwareFX.ChartFX.Lite.GalleryObj.Line.6O(E 0OM, Int32 0ON, Int32

0OO, Int32 0OP, Int32 0OQ, Boolean 0OR)

at SoftwareFX.ChartFX.Lite.GalleryObj.Line.6J(Int32 0O7, E 0O8, Int32&

0O9, Int32& 0OA)

at SoftwareFX.ChartFX.Lite.0V.GE(Int32& 1CO, Int32& 1CP)

at SoftwareFX.ChartFX.Lite.0V.GD(Int32& 1CM, Int32& 1CN)

at SoftwareFX.ChartFX.Lite.0V.GC(IGraphicsEx 1CL)

at SoftwareFX.ChartFX.Lite.Chart.9A(0V 0UK, IGraphicsEx 0UL, Rectangle&

0UM)

at SoftwareFX.ChartFX.Lite.Chart.99(PaintBar 0UH, IGraphicsEx 0UI,

Rectangle& 0UJ)

at SoftwareFX.ChartFX.Lite.0O.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.ControlNativeWindow.OnMessage(Message& m)

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

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,

Int32 msg, IntPtr wparam, IntPtr lparam)

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

at

System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho

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

Int32 pvLoopData)

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

ApplicationContext context)

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

ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

at com.klarisma.DEGAMIS.app.MainForm.Main() in

x:\kode\degamis\degamis\mainform.cs:line 169

Im a bit unsure as hos I am to debug this error as it happens deep inside

the ChartFX lib, and im not even sure that it is inside the library that the

problem is, but the root of the error is at the lib.

My environment is:

Windows XP Prof SP1a

VS.NET 2003 Enterprise Arc.

ChartFX Lite version: 6.0.1551.24517

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...