Hi!
I use ultradockmanager version 10.3.20103.1000. I found a very strange bug that happens sometimes when we closed a form that use it. We have two panels Docked left and tabbed together. Then we also have two others panels docked right with vertical split. When I close the form, I get the following stack trace :
************** Exception Text **************
System.ArgumentException: Value must be at least 0
at Infragistics.Win.UltraWinDock.Margins.set_Bottom(Int32 value)
at Infragistics.Win.UltraWinDock.DockableGroupPane.get_ContentsMargins()
at Infragistics.Win.UltraWinDock.DockablePaneBase.InternalProcessPaneSize(Boolean enforceMinMax, Size newSize, Size displaySize)
at Infragistics.Win.UltraWinDock.DockableGroupPane.InternalProcessPaneSize(Boolean enforceMinMax, Size newSize, Size displaySize)
at Infragistics.Win.UltraWinDock.DockAreaPane.InternalProcessPaneSize(Boolean enforceMinMax, Size newSize, Size displaySize)
at Infragistics.Win.UltraWinDock.DockablePaneBase.ProcessPaneSize(Boolean enforceMinMax, Size newSize)
at Infragistics.Win.UltraWinDock.DockablePaneBase.set_Size(Size value)
at Infragistics.Win.UltraWinDock.WindowDockingArea.SetPaneDisplaySize()
at Infragistics.Win.UltraWinDock.WindowDockingArea.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.DefaultLayout.SetDock(IArrangedElement element, DockStyle value)
at System.Windows.Forms.Control.set_Dock(DockStyle value)
at Infragistics.Win.UltraWinDock.UltraDockManager.VerifyFillPane(Boolean reset)
at Infragistics.Win.UltraWinDock.DockControlBase.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at Infragistics.Win.UltraWinDock.UltraDockManager.SetControlVisibility(Control control, Boolean isVisible)
at Infragistics.Win.UltraWinDock.WindowDockingArea.OnSubObjectPropChanged(PropChangeInfo propChange)
at Infragistics.Shared.SubObjectPropChangeEventHandler.Invoke(PropChangeInfo propChange)
at Infragistics.Shared.SubObjectBase.NotifyPropChange(PropChangeInfo trigger)
at Infragistics.Win.UltraWinDock.DockableGroupPane.OnSubObjectPropChanged(PropChangeInfo propChange)
at Infragistics.Win.UltraWinDock.DockAreaPane.OnSubObjectPropChanged(PropChangeInfo propChange)
at Infragistics.Win.UltraWinDock.DockablePanesCollection.Remove(DockablePaneBase pane)
at Infragistics.Win.UltraWinDock.UltraDockManager.ControlPaneRemoved(DockableControlPane pane)
at Infragistics.Win.UltraWinDock.DockableControlPanesCollection.Remove(DockableControlPane pane)
at Infragistics.Win.UltraWinDock.DockableControlPane.OnControlDisposed(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.ComponentModel.Component.Dispose(Boolean disposing)
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at DevExpress.XtraGauges.Win.GaugeControlBase.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at Infragistics.Win.ManagedContainerControlBase.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at System.Windows.Forms.Form.WmClose(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)
I tried to reproduce the problem in a stand alone with the same settings, but it doesn't happen. I can also say that I restore layout from xml when I open the form.Unfortunately, I don't have much more informations on the problem.
Is this problem tells you something ?
Thanks
Benoit
Hello Benoit,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
I have the same problem on only some XP machines. It seems, that a specific dll causes the problem...
Hello,
What is your version? Could you reproduce this in a small sample project so I can take a look at it and assist you further on this matter?