************* Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinGrid.UltraGridBand.get_HasGroupBySortColumns() at Infragistics.Win.UltraWinGrid.GroupByBox.GetButtons(ShowBandLabels bandLablesToShow) at Infragistics.Win.UltraWinGrid.GroupByBox.CalcRequiredSize(ShowBandLabels showBandLabels) at Infragistics.Win.UltraWinGrid.GroupByBox.get_IdealHeight() at Infragistics.Win.UltraWinGrid.UltraGridUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode) at Infragistics.Win.UltraWinGrid.UltraGridUIElement.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode) at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe) at Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint(PaintEventArgs pe) 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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------LightHouse Assembly Version: 2.4.0.0 Win32 Version: 2.4.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/LightHouse.exe----------------------------------------System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------LightHouse.Framework Assembly Version: 2.4.0.0 Win32 Version: 2.4.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/LightHouse.Framework.DLL----------------------------------------System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.1 built by: SP CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll----------------------------------------log4net Assembly Version: 1.2.10.0 Win32 Version: 1.2.10.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/log4net.DLL----------------------------------------CETS.Common Assembly Version: 2.3.1.0 Win32 Version: 2.3.1.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Common.DLL----------------------------------------CETS.Data Assembly Version: 2.3.1.0 Win32 Version: 2.3.1.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Data.DLL----------------------------------------System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------CETS.Core Assembly Version: 2.3.1.0 Win32 Version: 2.3.1.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Core.DLL----------------------------------------System.Security Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll----------------------------------------Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------System.Data.SqlXml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.SqlXml/2.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll----------------------------------------Goman.APComServer Assembly Version: 5.43.2.3 Win32 Version: 5.43.2.3 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/Goman.APComServer.DLL----------------------------------------System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll----------------------------------------LightHouse.DataSources Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/LightHouse.DataSources.DLL----------------------------------------System.Data.SQLite Assembly Version: 1.0.64.0 Win32 Version: 1.0.64.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/System.Data.SQLite.DLL----------------------------------------LightHouse.ControlLibrary Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/LightHouse.ControlLibrary.DLL----------------------------------------DundasWinChart Assembly Version: 7.0.0.1782 Win32 Version: 7.0.0.1782 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/DundasWinChart.DLL----------------------------------------System.Windows.Forms.DataVisualization Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.116 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/System.Windows.Forms.DataVisualization.DLL----------------------------------------Infragistics2.Win.v10.1 Assembly Version: 10.1.20101.1007 Win32 Version: 10.1.20101.1007 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/Infragistics2.Win.v10.1.DLL----------------------------------------Infragistics2.Shared.v10.1 Assembly Version: 10.1.20101.1007 Win32 Version: 10.1.20101.1007 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/Infragistics2.Shared.v10.1.DLL----------------------------------------Infragistics2.Win.UltraWinGrid.v10.1 Assembly Version: 10.1.20101.1007 Win32 Version: 10.1.20101.1007 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/Infragistics2.Win.UltraWinGrid.v10.1.DLL----------------------------------------LightHouse.Data Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/LightHouse.Data.DLL----------------------------------------CETS.Business.Messaging Assembly Version: 2.3.1.0 Win32 Version: 2.3.1.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Business.Messaging.DLL----------------------------------------CETS.Business Assembly Version: 2.3.1.0 Win32 Version: 2.3.1.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Business.DLL----------------------------------------CETS.Business.Lighthouse Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Business.Lighthouse.DLL----------------------------------------TIBCO.EMS Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/TIBCO.EMS.DLL----------------------------------------kyjhyaaf Assembly Version: 2.3.1.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------CETS.DataAccess.EMS Assembly Version: 2.3.1.0 Win32 Version: 2.3.1.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.DataAccess.EMS.DLL----------------------------------------CETS.Business.Messaging.Lighthouse Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///I:/OmanAsia/AgoraTools/Lighthouse/LighthouseClient/Lighthouse/CETS.Business.Messaging.Lighthouse.DLL----------------------------------------
************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /></configuration>
When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.
Hi,
If you attach a small sample project here that I can run and duplicate the issue, I'd be happy to take a look at it for you. But there's not much I can do to assist you with just a couple of cs files, a resx file, and an excel spreadsheet.
I have a ultragrid binded to a datasource and when im trying to insert a row , iI'm getting the same error message "Unable to update the data value : Object reference not set to an instance of an object" ( see attachement ).
This message only appears the first time i add a row ( via context menu )
Can you tell me what i'm doing wrong ?
Thank you.
Vianney
If the error occurs at random, then it's most likely a threading issue. I know you said you are not updating the data on a background thread. But that's only the tip of the iceberg when dealing with threads.There are a million different ways you could cause a threading problem any time you are dealing with a bound control - many of which are very difficult, if not impossible, to anticipate.
From the call stack of the error message, something in the grid is getting out of synch with the data source. It's blowing up while the grid is painting. This is another strong indicator of a threading issue.
Just few more things to add regarding above exception,
I am randomaly getting the above error no specific steps to reproduce. Not updating grid datasource in background thread below is the code snapshot
On Form Initialize I am setting
ultraGrid1.DataSource = ClientTransactionsViewData;
And on Any Data Update Model Call Control's OnModelEvent Method
if (InvokeRequired) { try { Invoke(new ModelEvent(OnModelEvent), new[] { sender, args }); } catch (Exception e) { Log.Error("ClientTransactions:OnModelEvent", e); } return; } try { foreach (DataRow dr in args.Data.Rows) { ClientTransactionsViewData.LoadDataRow(dr.ItemArray,LoadOption.OverwriteChanges); } } Catch { }