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.

Exception while loading state

Thread ID:

Created:

Updated:

Platform:

Replies:

16066 Jul 6,2004 12:16 AM Jul 9,2004 02:44 AM Windows Forms 2
loading
Tags: Tools
Frederic Gendrin
Asked On July 6, 2004 12:16 AM

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.

Administrator [Syncfusion]
Replied On 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.

Frederic Gendrin
Replied On 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.

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.

;