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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...