Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
947
URGENT HELP NEEDED: Null Exception on UltraChart (IListToChartAdapter2)
posted
Is there any other library requirements or dependency to other processes for Infragistics' UltraChart?
 
It's weird that the below error only happens on some PCs, and not all.

Unhandled Thread Exception, Exception='System.NullReferenceException: Object reference not set to an instance of an object.
   at Infragistics.UltraChart.Data.IListToChartAdapter2.GetStringValue(Int32 row, Int32 column)
   at Infragistics.UltraChart.Core.Layers.ScatterLayer.CreateSeriesHashtable(ScatterChartAppearance scatterApp)
   at Infragistics.UltraChart.Core.Layers.ScatterLayer.FillSceneGraph(SceneGraph scene)
   at Infragistics.UltraChart.Core.ChartCore.DrawChart()
   at Infragistics.Win.UltraWinChart.UltraChart.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.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)' (Loader.Unhandled Thread Exception)

Parents
No Data
Reply
  • 80
    posted

    I've had similar errors. They start happening when your program loads data into an ultrachart object upon loading or starting up the form. (i.e. when the constructor for the form is called, or when the Form_Load is called on a loading form).

    If you put a boolean check in place to not load data into the chart until the form is being viewed, when the destructor is called, data doesn't get loaded into the chart object and the null reference exception does not occur.

    This worked marvelously for me. Hope it helps for you.

Children
No Data