We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Toggling the value of DockingManager.AutoHideEnabled or DockingManager.CloseEnabled causes exceptions

In both 4.4 and the new 5.1 beta, if you have a dockingmanager and a tabbedmdimanager on a form (like in the VSDemo_2003 sample project), if you toggle either the CloseEnabled, or AutoHideEnabled, you get an exception.

The problem only reveals itself if you have a control that was docked and gets dragged into the MDI tab area. Then you get this stack trace, where it looks like the code is referencing an element of an array without making sure the array is non-empty.

Stack Trace:
Unhandled Exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Index 0 is out of range.
at System.Windows.Forms.ControlCollection.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Tools.DockingManager.set_AutoHideEnabled(Boolean value)
at VSDemo.VSMainForm.barItem1_Click(Object sender, EventArgs e) in c:\program files\syncfusion\essential studio\4.4.0.51\windows\tools.windows\samples\featured samples\vsdemo\cs\vsmainform.cs:line 241
at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs args)
at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.NotifyItem(BarItem item)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.HidePopup(PopupCloseType popupCloseType)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.ProcessItemClick(BarItem item)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ScrollControl.WmMouseUp(Message& msg)
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at VSDemo.VSMainForm.Main() in c:\program files\syncfusion\essential studio\4.4.0.51\windows\tools.windows\samples\featured samples\vsdemo\cs\vsmainform.cs:line 2164The program '[2868] VSDemo.exe' has exited with code 0 (0x0).

3 Replies

PJ Poly J Syncfusion Team April 20, 2007 10:18 AM UTC

Hi Bob,

Thanks for bringing this issue to our attention. We are able to reproduce this issue. Could you please create a direct- trac incident with Subject Line : "Toggling the value of DockingManager.AutoHideEnabled or DockingManager.CloseEnabled causes exceptions : F 59673"? We will update you about the bug fix details through our Direct-trac system.

Thanks for using Syncfusion products,

Best Regards,
Poly



BK Bob Krier April 23, 2007 04:08 PM UTC

I have already added a Direct-Trac, #33437. Thanks.


PJ Poly J Syncfusion Team April 24, 2007 03:51 AM UTC

Hi Bob,

Thanks for the update. We will send you the bug fix details through our Direct-trac System.

Best Regards,
Poly




Loader.
Live Chat Icon For mobile
Up arrow icon