Hi,
We are working with GGC v 3.2.1.0.
We see error message in our client error log. We could not get the exact scenario. Log is:
=================================================
Application Domain: Radar.exe
Assembly Codebase: file:///C:/Program Files/Ubs/RadarV3/Radar.exe Assembly Full Name: Radar, Version=1.1.2.0, Culture=neutral, PublicKeyToken=null Assembly Version: 1.1.2.0 Assembly Build Date: 3/25/2006 12:14:24 AM
Exception Source: Syncfusion.Grid.Grouping.Windows Exception Type: System.NullReferenceException Exception Message: Object reference not set to an instance of an object.
Exception Target Site: CreateTableCellIdentity
---- Stack Trace ----
Syncfusion.Windows.Forms.Grid.Grouping.GridTable.CreateTableCellIdentity(element As Element, rowIndex As Int32, colIndex As Int32)
Radar.exe: N 03738
Syncfusion.Windows.Forms.Grid.Grouping.GridTable.CreateTableCellStyle(element As Element, rowIndex As Int32, colIndex As Int32)
Radar.exe: N 00024
Syncfusion.Windows.Forms.Grid.Grouping.GridTable.GetTableCellStyle(rowIndex As Int32, colIndex As Int32)
Radar.exe: N 00132
Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.GetTableViewStyleInfo(rowIndex As Int32, colIndex As Int32)
Radar.exe: N 00052
Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.GetViewStyleInfo(rowIndex As Int32, colIndex As Int32, forceQueryCellInfo As Boolean)
Radar.exe: N 00011
Syncfusion.Windows.Forms.Grid.GridControlBase.GetViewStyleInfo(rowIndex As Int32, colIndex As Int32)
Radar.exe: N 00013
Syncfusion.Windows.Forms.Grid.GridControlBase.GetCellRenderer(rowIndex As Int32, colIndex As Int32)
Radar.exe: N 00022
Syncfusion.Windows.Forms.Grid.Grouping.ClickCellsHitTestInfo..ctor(grid As GridControlBase, e As MouseEventArgs, controller As IMouseController)
Radar.exe: N 00553
Syncfusion.Windows.Forms.Grid.Grouping.GridTableClickCellsMouseController.HitTest(e As MouseEventArgs, controller As IMouseController)
Radar.exe: N 00602
Syncfusion.Windows.Forms.MouseControllerDispatcher.HitTest(point As Point, mouseButton As MouseButtons, clicks As Int32, controller As IMouseController&)
Radar.exe: N 00185
Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseMove(e As MouseEventArgs)
Radar.exe: N 00398
Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlMouseMoveHandled(sender As Object, e As MouseEventArgs)
Radar.exe: N 00019
Syncfusion.Windows.Forms.ScrollControl.OnScrollControlHandledMouseMove(e As MouseEventArgs)
Radar.exe: N 00027
Syncfusion.Windows.Forms.ScrollControl.OnMouseMove(e As MouseEventArgs)
Radar.exe: N 01678
Syncfusion.Windows.Forms.Grid.GridControlBase.OnMouseMove(e As MouseEventArgs)
Radar.exe: N 00103
Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.OnMouseMove(e As MouseEventArgs)
Radar.exe: N 00032
System.Windows.Forms.Control.WmMouseMove(m As Message&)
Radar.exe: N 00134
System.Windows.Forms.Control.WndProc(m As Message&)
Radar.exe: N 01478
Syncfusion.Windows.Forms.ScrollControl.WndProc(msg As Message&)
Radar.exe: N 00601
Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(msg As Message&)
Radar.exe: N 00328
Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(msg As Message&)
Radar.exe: N 00146
System.Windows.Forms.ControlNativeWindow.OnMessage(m As Message&)
Radar.exe: N 00010
System.Windows.Forms.ControlNativeWindow.WndProc(m As Message&)
Radar.exe: N 00187
System.Windows.Forms.NativeWindow.Callback(hWnd As IntPtr, msg As Int32, wparam As IntPtr, lparam As IntPtr)
Radar.exe: N 00047
=================================================
We see somebody rasing similer issue at http://64.78.18.34/Support/Forums/message.aspx?MessageID=26305
But in our application we are not working with FindKey method. But we are moving the record positions.
Can you please give us some possible scenarios where we can get this error? We are trying to re-produce and fix this. Appreciate any help rgd this.
Thanks and Regards
Rajani Kanth
AD
Administrator
Syncfusion Team
April 20, 2006 06:35 AM UTC
Hi Rajani,
We regret very much for the inconvenience caused.
I had contacted the development team regarding this issue. Here is the reply from the grid architect.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I looked through the code for CreateTableCellIdentity and compared it between 3.2.1.0 and latest code and noticed that we made the following change in the method:
internal GridTableCellStyleInfoIdentity CreateTableCellIdentity(Element element, int rowIndex, int colIndex)
{
if (element != null)
{
Element displayElement = element;
GridTableCellStyleInfoIdentity e = new GridTableCellStyleInfoIdentity(TableModel.VolatileData, rowIndex, colIndex);
The line
GridTableCellStyleInfoIdentity e = new GridTableCellStyleInfoIdentity(TableModel.VolatileData, rowIndex, colIndex);
Was replaced with
IGridData volatileData = null;
if (TableModel != null)
volatileData = TableModel.VolatileData;
GridTableCellStyleInfoIdentity e = new GridTableCellStyleInfoIdentity(volatileData, rowIndex, colIndex);
If you have source code you can try and replace that line in the distribution and let us know if it makes a difference.
If it still fails I recommend switching to debug assemblies and send us call stack and the exact lines (code snippedt from CreateTableCellIdentity) where the exception is raised. It is a fairly large method
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Please let me know if you need any further assistance.
Thanks for your patience.
Regards,
Haneef