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

Exception while loading state

Hi, I need to save/load the state of the docking manager, and I am getting the following exception when trying to load this state: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Syncfusion.Windows.Forms.Tools.TabPageAdvCollection.get_Item(Int32 index) at Syncfusion.Windows.Forms.Tools.AHTabControl.MFMouseMessageHandler(Point ptscreen) at Syncfusion.Windows.Forms.Tools.DockingManager.GetMsgProc(Int32 nCode, IntPtr wparam, IntPtr lparam) at Syncfusion.Windows.Forms.Tools.Design.ThreadHooks.GetMsgProcedure(Int32 ncode, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, IntPtr hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) It is working in a stand alone form, but not when I have a form embedded into another one. Any idea? Many Thanks, Frederic.

2 Replies

AD Administrator Syncfusion Team July 6, 2004 01:04 AM

Hi Frederic, Could you please provide the following information 1) Which version of Essential Tools are you using? 2) Could you please elaborate on the structure of your application a) Are you using Tab pages and the docking manager is in one of the tab pages? b) Could you please explain what you mean by embedding a form?. It would be great if you could send a small sample that reproduces the problem. Sorry for the inconvenience. Thanks. Best regards, Stephen. >Hi, >I need to save/load the state of the docking manager, and I am getting the following exception when trying to load this state: >System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. >Parameter name: index > at System.Collections.ArrayList.get_Item(Int32 index) > at Syncfusion.Windows.Forms.Tools.TabPageAdvCollection.get_Item(Int32 index) > at Syncfusion.Windows.Forms.Tools.AHTabControl.MFMouseMessageHandler(Point ptscreen) > at Syncfusion.Windows.Forms.Tools.DockingManager.GetMsgProc(Int32 nCode, IntPtr wparam, IntPtr lparam) > at Syncfusion.Windows.Forms.Tools.Design.ThreadHooks.GetMsgProcedure(Int32 ncode, IntPtr wparam, IntPtr lparam) > at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, IntPtr hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) > at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) > at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) > at System.Windows.Forms.Application.Run(Form mainForm) >It is working in a stand alone form, but not when I have a form embedded into another one. >Any idea? > >Many Thanks, > >Frederic.


FG Frederic Gendrin July 9, 2004 02:44 AM

Hi, Thank you for your reply. 1) Tools version 2.0.5.0 2) I am using Tabs yes. In each tab I have several forms, and in some of those forms I have a DockingManager. The weird thing is that loading the persistence state seems to work fine until I enter the application form with my mouse. I cannot really produce a ''small'' sample to reproduce... Thanks for your help! Frederic >Hi Frederic, > >Could you please provide the following information > >1) Which version of Essential Tools are you using? > >2) Could you please elaborate on the structure of your application > a) Are you using Tab pages and the docking manager is in one of the tab pages? > b) Could you please explain what you mean by embedding a form?. > > It would be great if you could send a small sample that reproduces the problem. Sorry for the inconvenience. Thanks. > >Best regards, > >Stephen. > >>Hi, >>I need to save/load the state of the docking manager, and I am getting the following exception when trying to load this state: >>System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. >>Parameter name: index >> at System.Collections.ArrayList.get_Item(Int32 index) >> at Syncfusion.Windows.Forms.Tools.TabPageAdvCollection.get_Item(Int32 index) >> at Syncfusion.Windows.Forms.Tools.AHTabControl.MFMouseMessageHandler(Point ptscreen) >> at Syncfusion.Windows.Forms.Tools.DockingManager.GetMsgProc(Int32 nCode, IntPtr wparam, IntPtr lparam) >> at Syncfusion.Windows.Forms.Tools.Design.ThreadHooks.GetMsgProcedure(Int32 ncode, IntPtr wparam, IntPtr lparam) >> at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, IntPtr hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) >> at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) >> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) >> at System.Windows.Forms.Application.Run(Form mainForm) >>It is working in a stand alone form, but not when I have a form embedded into another one. >>Any idea? >> >>Many Thanks, >> >>Frederic.

Loader.
Live Chat Icon For mobile
Up arrow icon