B
beau
Hi,
I have a winforms application written in C#, framework 1.1. It
contains several grids that get updated frequently.
Sporatically, we've been getting NullReferenceException while the
control draws itself. The last method called is
DataView.IsOriginalVersion(int)...
I've read a few other posts with similiar issues, but no real
solution. Anyone else having these problems? Found any solutions?
Thanks,
-beau
Here are two traces:
=================== Trace 1
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance
of an object.
at System.Data.DataView.IsOriginalVersion(Int32 index)
at System.Data.DataRowView.get_Item(Int32 ndx)
at DevExpress.Data.DataViewDataAdapter.GetRowValue(Int32 rowHandle,
Int32 columnHandle)
at DevExpress.Data.CustomDataController.GetRowValue(Int32
rowHandle, Int32 columnHandle)
at DevExpress.XtraGrid.Views.Base.ColumnView.GetRowCellValue(Int32
rowHandle, GridColumn column)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfo(GridRowInfo
ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs
nextColumn, Boolean calcEditInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellsDrawInfo(GridRowInfo
ri, GridColumnsInfo columnsInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowDrawInfo(GridRowInfo
ri, GridRow row, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowsDrawInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcGridInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics
g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Grid.GridView.CheckViewInfo()
at DevExpress.XtraGrid.Views.Base.BaseView.Draw(GraphicsCache e)
at DevExpress.XtraGrid.GridControl.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 DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message&
m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
======================= Trace 2
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance
of an object.
at System.Data.DataView.IsOriginalVersion(Int32 index)
at System.Data.DataRowView.get_Item(Int32 ndx)
at DevExpress.Data.DataViewDataAdapter.GetRowValue(Int32 rowHandle,
Int32 columnHandle)
at DevExpress.Data.CustomDataController.GetRowValue(Int32
rowHandle, Int32 columnHandle)
at DevExpress.XtraGrid.Views.Base.ColumnView.GetRowCellValue(Int32
rowHandle, GridColumn column)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfo(GridRowInfo
ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs
nextColumn, Boolean calcEditInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellsDrawInfo(GridRowInfo
ri, GridColumnsInfo columnsInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowDrawInfo(GridRowInfo
ri, GridRow row, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowsDrawInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcGridInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics
g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Grid.GridView.CheckViewInfo()
at DevExpress.XtraGrid.Views.Base.BaseView.Draw(GraphicsCache e)
at DevExpress.XtraGrid.GridControl.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 DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message&
m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
I have a winforms application written in C#, framework 1.1. It
contains several grids that get updated frequently.
Sporatically, we've been getting NullReferenceException while the
control draws itself. The last method called is
DataView.IsOriginalVersion(int)...
I've read a few other posts with similiar issues, but no real
solution. Anyone else having these problems? Found any solutions?
Thanks,
-beau
Here are two traces:
=================== Trace 1
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance
of an object.
at System.Data.DataView.IsOriginalVersion(Int32 index)
at System.Data.DataRowView.get_Item(Int32 ndx)
at DevExpress.Data.DataViewDataAdapter.GetRowValue(Int32 rowHandle,
Int32 columnHandle)
at DevExpress.Data.CustomDataController.GetRowValue(Int32
rowHandle, Int32 columnHandle)
at DevExpress.XtraGrid.Views.Base.ColumnView.GetRowCellValue(Int32
rowHandle, GridColumn column)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfo(GridRowInfo
ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs
nextColumn, Boolean calcEditInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellsDrawInfo(GridRowInfo
ri, GridColumnsInfo columnsInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowDrawInfo(GridRowInfo
ri, GridRow row, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowsDrawInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcGridInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics
g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Grid.GridView.CheckViewInfo()
at DevExpress.XtraGrid.Views.Base.BaseView.Draw(GraphicsCache e)
at DevExpress.XtraGrid.GridControl.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 DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message&
m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
======================= Trace 2
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance
of an object.
at System.Data.DataView.IsOriginalVersion(Int32 index)
at System.Data.DataRowView.get_Item(Int32 ndx)
at DevExpress.Data.DataViewDataAdapter.GetRowValue(Int32 rowHandle,
Int32 columnHandle)
at DevExpress.Data.CustomDataController.GetRowValue(Int32
rowHandle, Int32 columnHandle)
at DevExpress.XtraGrid.Views.Base.ColumnView.GetRowCellValue(Int32
rowHandle, GridColumn column)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfo(GridRowInfo
ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs
nextColumn, Boolean calcEditInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellsDrawInfo(GridRowInfo
ri, GridColumnsInfo columnsInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowDrawInfo(GridRowInfo
ri, GridRow row, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowsDrawInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcGridInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics
g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Grid.GridView.CheckViewInfo()
at DevExpress.XtraGrid.Views.Base.BaseView.Draw(GraphicsCache e)
at DevExpress.XtraGrid.GridControl.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 DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message&
m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)