I have a WinGrid that allows the user to group rows. After one group is set up, if the user clicks and drags on a data cell instead of a column header, the grid will throw an exception. We are using an older version of your library, since updating to the newer version will require about 500 hrs of programming effort. Is there any way I can add some code to catch this exception and simply allow my application to continue running. This Grid is only being used to display data. The only input type functionality is that we allow the user to select rows and request some actions on the data represented by that row.
Here is the stack trace:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.ItemNearestPoint(Point point, ISelectableItem lastItem) at Infragistics.Win.SelectionStrategyExtended.OnMouseMove(ISelectableItem item, MouseMessageInfo& msginfo) at Infragistics.Win.SelectionStrategyExtended.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo) at Infragistics.Win.ControlUIElementBase.ProcessMouseMoveHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseMove(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- Microsoft.VisualStudio.HostingProcess.Utilities Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.dll ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- Microsoft.VisualStudio.HostingProcess.Utilities.Sync Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities.Sync/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll ---------------------------------------- Microsoft.VisualStudio.Debugger.Runtime Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Debugger.Runtime/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Debugger.Runtime.dll ---------------------------------------- vshost Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkAdmin.vshost.exe ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Data.DataSetExtensions Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll ---------------------------------------- System.Deployment Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll ---------------------------------------- System.Design Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll ---------------------------------------- System.Drawing.Design Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll ---------------------------------------- System.Runtime.Serialization.Formatters.Soap Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 11.0.50709.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- Trizetto.QLe2.QicLinkAdmin Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkAdmin.EXE ---------------------------------------- Trizetto.QLe2.QicLinkLibrary Assembly Version: 1.0.5213.25600 Win32 Version: 1.0.5213.25600 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkLibrary.DLL ---------------------------------------- Trizetto.QLe2.QicLinkWinUtility Assembly Version: 1.0.5213.25600 Win32 Version: 1.0.5213.25600 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkWinUtility.DLL ---------------------------------------- LogViewer Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/LogViewer.EXE ---------------------------------------- Infragistics2.Win.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.v11.1.dll ---------------------------------------- Infragistics2.Shared.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Shared.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Shared.v11.1.dll ---------------------------------------- Infragistics2.Win.UltraWinExplorerBar.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.UltraWinExplorerBar.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinExplorerBar.v11.1.dll ---------------------------------------- Infragistics2.Win.UltraWinStatusBar.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.UltraWinStatusBar.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinStatusBar.v11.1.dll ---------------------------------------- Trizetto.QLe2.QicLinkClientUtility Assembly Version: 1.0.5213.25600 Win32 Version: 1.0.5213.25600 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkClientUtility.DLL ---------------------------------------- Trizetto.QLe2.QicLinkShared Assembly Version: 1.0.5213.25600 Win32 Version: 1.0.5213.25600 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkShared.DLL ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- Infragistics2.Win.UltraWinTabControl.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.UltraWinTabControl.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinTabControl.v11.1.dll ---------------------------------------- System.ServiceModel Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll ---------------------------------------- SMDiagnostics Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll ---------------------------------------- System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll ---------------------------------------- System.ServiceModel.Internals Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll ---------------------------------------- System.Transactions Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- Trizetto.QLe2.QicLinkEntities Assembly Version: 1.0.5213.25600 Win32 Version: 1.0.5213.25600 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkEntities.DLL ---------------------------------------- Trizetto.QLe2.QicLinkEFModels Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/QicLink_e2/V50/VSSolution/QicLinkAdmin/bin/Trizetto.QLe2.QicLinkEFModels.DLL ---------------------------------------- System.Data.Entity Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Entity/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Entity.dll ---------------------------------------- System.IdentityModel Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll ---------------------------------------- Microsoft.VisualStudio.Diagnostics.ServiceModelSink Assembly Version: 4.0.0.0 Win32 Version: 11.0.50727.1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Diagnostics.ServiceModelSink/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll ---------------------------------------- System.Xaml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll ---------------------------------------- Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll ---------------------------------------- Infragistics2.Win.UltraWinGrid.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.UltraWinGrid.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinGrid.v11.1.dll ---------------------------------------- Infragistics2.Win.Misc.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.Misc.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.Misc.v11.1.dll ---------------------------------------- Infragistics2.Win.UltraWinEditors.v11.1 Assembly Version: 11.1.20111.2111 Win32 Version: 11.1.20111.2111 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics2.Win.UltraWinEditors.v11.1/11.1.20111.2111__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinEditors.v11.1.dll ---------------------------------------- System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll ----------------------------------------
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
Hello,
Thank you for contacting Infragistics.
It would probably be more helpful if you could provide a sample project which reproduces the issue. The only thing I can tell from the exception is that something is null when it's not expected to be.
Dave,
I found a work around. The grid that was throwing the exception had the following code:
Me.grdFlat.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText
As it turns out, we don't want the user to edit any of the cells in this grid, so I was able to change the above code to:
Me.grdFlat.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect
This eliminated the grid from throwing an exception in the above case so I am happy with this as a workaround.
Andy