Hello,
I wasn't sure where to put this topic so please move if you need to.
I've updated to 13.1 (including the latest service release) and I've been seeing this in my application more and more (I'm not able to provide a sample project at the moment due to deadlines).
Can anyone think why this might be? The latest sample is where I'm simply trying to show a form. I also see this sometimes when the application starts up in the splash screen (even if I add exception handling around this it gets thrown as an unhandled exception regardless which makes me think it's an internal issue):
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.Misc.UltraButton.OnLostFocus(EventArgs e) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thanks,Andrew
Hello Andrew,
I have logged a development issue for this.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing your active cases on the web site.
Hi Michael,
Apparently my case has been closed however it says the following under development issues "There are no development issues associated with this support request."
The likeliest explanation is that you are accessing UI objects from a thread other than the one on which they were created, as would be the case if you (for example) directly manipulated a control from within the BackgroundWorker.DoWork event. Excerpt from MSDN docs for BackgroundWorker.DoWork:
"You must be careful not to manipulate any user-interface objects in your DoWork event handler. Instead, communicate to the user interface through the BackgroundWorker events."
You can also use the control's BeginInvoke method to manipulate UI objects asynchronously. Use the control's InvokeRequired property to determine whether this is necessary.
Hi Brian,
I was originally using BeginInvoke which had been working, but after trying a few things out as a work around to the object not set error, I'd taken this bit of code out so yes I think you are correct, it was due to trying to manipulate the control which had been created on a different thread.
What I've now done is I've replaced the UltraButtons with standard .net buttons as a work around, until the error is resolved by one of your developers.
Hallo,
PLEASE HELP! Same problem here. Customers getting nervous ;(
Will there be a Service Patch in closer future?
Nico
Hi,
The NullReferenceException in the OnLostFocus of UltraButton will be fixed in the next Service Release.
According to the Infragistics Product Service Releases Schedule, the estimated release date is June 21st.
i have the same problem in winforms 12.1
i think here i don't get a service release!
This issue was resolved in versions 12.2, 13.1. NetAdvantage for Winforms 2012 Volume 1 is now expired. For more information please visit our product lifecycle page.
http://es.infragistics.com/help/product-lifecycle/