superkikin2 Posted June 19, 2009 Report Share Posted June 19, 2009 Hello, I have a chart with multiple panes whithin. Each pane represents the historic evolution of stock value. All works fine except in one case. If I generate a chart with three or more panes (stocks values) and two of those have the max a min value overlapped, the graph throws error. The error trace is this: "Object reference not set to an instance of an object." at ChartFX.WinForms.Axis.a(t A_0, Rectangle[] A_1, RepaintFlags& A_2, AxisPaint A_3, AxisSection& A_4) at ChartFX.WinForms.AxisCollection.a(t A_0, Rectangle[] A_1, AxisPaint A_2) at ChartFX.WinForms.Pane.a(t A_0, Rectangle[] A_1, AxisPaint A_2) at ChartFX.WinForms.PaneCollection.a(t A_0, Rectangle[] A_1, AxisPaint A_2) at ChartFX.WinForms.t.b(Boolean A_0, Boolean A_1) at ChartFX.WinForms.t.a(IFrame A_0, Int32& A_1) at ChartFX.WinForms.Chart.a(PaintBar A_0, IGraphicsEx A_1) at ChartFX.WinForms.al.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 IBERIA.Market.Data.Publisher.Client.Program.Main() The binding values have this maxs and mins: Serie #1 : 1196 - 1056 Serie #2 : 1324 - 1005 Serie #3 : 1025 - 970 What can i do? Quote Link to comment Share on other sites More sharing options...
superkikin2 Posted June 22, 2009 Author Report Share Posted June 22, 2009 Any answer or advise?? Quote Link to comment Share on other sites More sharing options...
superkikin2 Posted June 23, 2009 Author Report Share Posted June 23, 2009 I've been testing this error and I've discovered that exceptions is throws when axis Y scaling is similar and the height of chart is minor than 260 px. i think about error is paint method when Y axes are too near. Any idea??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.