Jump to content
Software FX Community

Overflow Error


User (Legacy)

Recommended Posts

Using a 4 pane chart if I open my form with a pane not visable and then try 

to make it visable I get the overflow error below. If I first open the

chart with the same pane visable I can go back and forth without error.

System.OverflowException was unhandled

Message="Overflow error."

Source="System.Drawing"

StackTrace:

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

at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1,

Int32 x2, Int32 y2)

at ChartFX.WinForms.Internal.GraphicsEx.DrawLine(Pen pen, Int32 x,

Int32 y, Int32 x2, Int32 y2)

at ChartFX.WinForms.bb.a(IGraphicsEx A_0, Pen A_1, Int32 A_2, Int32

A_3, Int32 A_4)

at ChartFX.WinForms.bb.a(IGraphicsEx A_0, Point3D A_1, Point3D A_2,

Brush A_3, Pen A_4, Brush A_5, Face A_6, Flag3D A_7, Int32 A_8, Int32 A_9)

at ChartFX.WinForms.Galleries.Area.a(PaintMarkBase A_0, Int32 A_1,

Int32 A_2, Int32 A_3, Int32 A_4, Int32 A_5, Int32 A_6, Face A_7)

at ChartFX.WinForms.Galleries.Area.a(Int32 A_0, PaintMarkBase A_1,

Int32& A_2, Int32& A_3)

at ChartFX.WinForms.aw.a(Int32& A_0, Int32& A_1)

at ChartFX.WinForms.aw.b(Int32& A_0, Int32& A_1)

at ChartFX.WinForms.aw.t()

at ChartFX.WinForms.aw.a(IFrame A_0, Int32& A_1)

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

at ChartFX.WinForms.ag.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.DebuggableCallback(IntPtr hWnd,

Int32 msg, IntPtr wparam, IntPtr lparam)

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

msg)

at

System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32

dwComponentID, Int32 reason, Int32 pvLoopData)

at

System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32

reason, ApplicationContext context)

at

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

ApplicationContext context)

at System.Windows.Forms.Application.Run(ApplicationContext context)

at

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

at

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

at

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]

commandLine)

at RFP.My.MyApplication.Main(String[] Args) in

17d14f5c-a337-4978-8281-53493378c1071.vb:line 81

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]

args)

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence

assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext

executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

Link to comment
Share on other sites

1.  First  I show a 4 pane chart form making frames visable based on last 

state stored in a database. (Works fine for all initial states)

2. Then using a new command created on the toolbar a form is shown that

allows the user to hide or unhide any of the 4 panes. (This works fine for

any pane that was initially shown on the first form as visable. If the pane

was not visible (hidden) when first shown the overflow error occurs when the

user tries to unhide it.)

All steps in the Hide/Unhide Button Click Sub execute. The error is thrown

when the Sub closes. I assume that´s when the redraw starts.

"Software FX" <noreply@softwarefx.com> wrote in message

news:QLBtRoPNHHA.2556@webserver3.softwarefx.com...

> Can you please attach a repro case.

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

I found a work around for the error as follows:

I initialize the chart with all panes visible in the forms Load event and

then hide panes as required in the forms Activated event. This works fine

leading me to believe the problem may be one of timing in the re-draw.

"Don Hofferber" <chofferber@hotmail.com> wrote in message

news:iK%23T9TQNHHA.2624@webserver3.softwarefx.com...

> 1. First I show a 4 pane chart form making frames visable based on last

> state stored in a database. (Works fine for all initial states)

> 2. Then using a new command created on the toolbar a form is shown that

> allows the user to hide or unhide any of the 4 panes. (This works fine

> for any pane that was initially shown on the first form as visable. If

> the pane was not visible (hidden) when first shown the overflow error

> occurs when the user tries to unhide it.)

>

> All steps in the Hide/Unhide Button Click Sub execute. The error is

> thrown when the Sub closes. I assume that´s when the redraw starts.

>

>

> "Software FX" <noreply@softwarefx.com> wrote in message

> news:QLBtRoPNHHA.2556@webserver3.softwarefx.com...

>> Can you please attach a repro case.

>>

>> --

>> Francisco Padron

>> www.chartfx.com

>>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...