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