Jump to content
Software FX Community

what will be the cause of following exception.


TechFX

Recommended Posts

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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...