TechFX Posted September 24, 2007 Report Share Posted September 24, 2007 Hi, I am developing an application in whichI have used Datatable as datasource of Chart. I have one worker thread in which there is timer. I timer elapsed event , i am adding the rows to the datatable .\ for each iterartion of timer i am clearing the rows and adding new rows. but i am getting one exception , stacktrace for which is shown below : Object reference not set to an instance of an object. at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.GetRow(Int32 index) at System.Data.DataRowView.get_Row() at System.Data.DataRowView.BeginEdit() at System.Windows.Forms.CurrencyManager.OnCurrentChanged(EventArgs e) at System.Windows.Forms.CurrencyManager.ChangeRecordState(Int32 newPosition, Boolean validating, Boolean endCurrentEdit, Boolean firePositionChange, Boolean pullData) at System.Windows.Forms.CurrencyManager.set_Position(Int32 value) at ChartFX.WinForms.DataProviders.d.b() at ChartFX.WinForms.DataSourceSettings.a(IDataEx A_0, FieldMapCollection A_1, PropertyDescriptorCollection A_2, b A_3, Boolean A_4) at ChartFX.WinForms.DataSourceSettings.a() at ChartFX.WinForms.DataSourceSettings.e() at ChartFX.WinForms.ap.d() at ChartFX.WinForms.ap.k() at ChartFX.WinForms.Chart.a(IGraphicsEx A_0, Boolean A_1) at ChartFX.WinForms.Chart.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.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) I am not getting the cause of this exception ? Can u please help me? Quote Link to comment Share on other sites More sharing options...
Frank Posted September 26, 2007 Report Share Posted September 26, 2007 Looks like a bug. Please make sure you are using the latest service pack from our Support site. If the problem happens with the latest SP, please post a self--contained (no external databases) VS project that reproduces the problem. 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.