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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

59673 Apr 19,2007 11:59 AM Apr 23,2007 11:51 PM Windows Forms 3
loading
Tags: Tools
Bob Krier
Asked On April 19, 2007 11:59 AM

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).

Poly J [Syncfusion]
Replied On April 20, 2007 06:18 AM

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


Bob Krier
Replied On April 23, 2007 12:08 PM

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

Poly J [Syncfusion]
Replied On April 23, 2007 11:51 PM

Hi Bob,

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

Best Regards,
Poly




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;