Jump to content
Software FX Community

ChartFX throws an exception


User (Legacy)

Recommended Posts

While trying to display a chart in a .NET 2.0 WinForms application, we got 

the following exception (using the latest version of ChartFX):

---------------------------

An unhandled exception occurred:

Negating the minimum value of a twos complement number is invalid.

Location:

at System.Math.AbsHelper(Int32 value)

at System.Math.Abs(Int32 value)

at ChartFX.WinForms.Axis.a(Double A_0, Boolean A_1, Boolean A_2, Boolean

A_3, Size A_4)

at ChartFX.WinForms.Axis.a(aw A_0, Rectangle[] A_1, RepaintFlags& A_2,

AxisPaint A_3, AxisSection& A_4)

at ChartFX.WinForms.AxisCollection.a(aw A_0, Rectangle[] A_1, AxisPaint

A_2)

at ChartFX.WinForms.Pane.a(aw A_0, Rectangle[] A_1, AxisPaint A_2)

at ChartFX.WinForms.PaneCollection.a(aw A_0, Rectangle[] A_1, AxisPaint

A_2)

at ChartFX.WinForms.aw.b(Boolean A_0, Boolean A_1)

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

at ChartFX.WinForms.Chart.b(PaintBar A_0, IGraphicsEx A_1, Rectangle&

A_2)

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(Form mainForm)

at

Infragistics.Practices.CompositeUI.WinForms.IGFormShellApplication`2.Start()

in C:\Program Files\Infragistics\NetAdvantage 2006 Volume 1 CLR 2.0\Windows

Forms\CAB Extensibility

Kit\Source\Infragistics.CompositeUI.WinForms\Application\IGFormShellApplication.cs:line

24

at Microsoft.Practices.CompositeUI.CabApplication`1.Run() in C:\Program

Files\Microsoft Composite UI App

Block\CSharp\Source\CompositeUI\CabApplication.cs:line 81

at BNA.EstateTaxPlanner.Shell.ShellApplication.RunInDebugMode() in

E:\ET\2006\BNA.EstateTaxPlanner\Shell\ShellApplication.cs:line 88

Ideas ?

Mark

Link to comment
Share on other sites

I´ve found that if I remove a call to ZoomToPercentage() from my code, the 

graph appears fine. If I call ZoomToPercentage(100), I get the error. The

chart is appearing in an MDI form.

Mark

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:b0iJX$0tGHA.2276@webserver3.softwarefx.com...

> Seems like you are not initializing something, in particular it looks like

> an axis Min and/or Max are invalid. I would need a sample application that

> reproduces the problem in order to tell you what´s causing it.

>

> --

> 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...