VS2005, C#, Volumne 7.3
private void uiExplorerBar_DoubleClick(object sender, EventArgs e) { Application.DoEvents();
....
Throws this when DoEvents is called:
System.NullReferenceException: Object reference not set to an instance of an object.at Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar.ItemFromPoint(Point point)at Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar.OnDoubleClick(EventArgs e)at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)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)
Any thoughts why this might be happening?
DoEvents can cause synchronicity issues because it forces all pending messages to be processed immediately. Sometimes it is not a good idea to use it. Having said that, there was an issue with the ItemFromPoint method that might explain this. That problem has been addressed in the latest version, so you might want to download that and if the problem persists, report it as a bug.