I've written a simple test app to replicate this issue (attached).
The main form has UltraDockManager on it and it has two dock panes when startup. I close down these two panes, and I move focus to another windows application, e.g., IE. When i focus back to the main form, I got the following exception.
System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinDock.DockableGroupPane.set_SelectedTabPane(DockablePaneBase value) at Infragistics.Win.UltraWinDock.DockablePaneBase.set_IsSelectedTab(Boolean value) at Infragistics.Win.UltraWinDock.UltraDockManager.NotifyPossibleActivePaneChange() at Infragistics.Win.UltraWinDock.UltraDockManager.OnFormActivated(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnActivated(EventArgs e) at System.Windows.Forms.Form.set_Active(Boolean value) at System.Windows.Forms.Form.WmActivate(Message& m) at System.Windows.Forms.Form.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)It looks like a bug. Any suggestion on fixing it?
Thanks.
We are using 9.2.20092.2083, and also having the same issue.In some situations, when loading back the saved states, have a crash:
Infragistics2.Win.UltraWinDock.v9.2NullReferenceExceptionSystem.Void set_SelectedTabPane(Infragistics.Win.UltraWinDock.DockablePaneBase value)System.Void set_IsSelectedTabSystem.Void NotifyPossibleActivePaneChange()System.Void OnContainerEnter(System.Object sender, System.EventArgs e)System.Void OnEnter(System.EventArgs e)System.Void NotifyEnter()System.Void UpdateFocusedControl()
Any progress in this bug?
Thanks
Mike20008,
I have not been able to find a workaround for this issue; the later service release is the patch that you will have to install.
~Kim~
Is there a workaround or a patch if we still have to use the existing version for sometime?Thanks.
mike2008,
I tested your sample and was able to reproduce the issue in 8.2.20082.2022; however, when I upgraded the sample to the latest service release (build 8.2.20082.2149), I was unable to reproduce the behavior. I recommend installing the latest service release and upgrading your project to use the later builds.