Reloading a layout can cause nullreference exception

Docking/MDI for Windows Forms Forum

Posted 17 years ago by Marianne
Version: 2.0.77
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
If an xml layout has an autohide container specified on the left side of the form but the current layout has that tab group pinned down (so that there is no autohide container on that side), if you reload the layout all of the tabs are auto-hidden again but when attempting to click on any of them will generate an exception. If I move through the error then the window displays and everything runs normally again. Here is the specific contents of the error:

System.NullReferenceException: Object reference not set to an instance of an object.
at ActiproSoftware.UIStudio.Dock.AutoHideContainer.a(Boolean A_0)
at ActiproSoftware.UIStudio.Dock.DockManager.d(Boolean A_0)
at ActiproSoftware.UIStudio.Dock.DockManager.z()
at ActiproSoftware.UIStudio.Dock.DockManager.a(TabbedMdiWindow A_0)
at ActiproSoftware.UIStudio.Dock.TabbedMdiWindow.OnEnter(EventArgs e)
at System.Windows.Forms.Control.NotifyEnter()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()

------------------------------- Marianne

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Marianne,

I just tried to dupe this in the sample project but it worked ok for me. Could you send over repro steps in the DockForm sample or email over a small project that shows it? Thanks!


Actipro Software Support

The latest build of this product (v24.1.0) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.