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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Docking Manager Error

Thread ID:





6967 Sep 8,2003 01:54 PM UTC Sep 8,2003 05:12 PM UTC WinForms 1
Tags: Tools
Sean Greer
Asked On September 8, 2003 01:54 PM UTC

I have a DockingManager with 3 controls associated with it. In the Forms OnLoad I check the user's security and make changes to which docked controls they can see. If I change the dock visibility of a control by calling SetEnableDocking(control, false) I get the following assertion: --------------------------- RecruitMax --------------------------- An error occurred please contact the adminstrator with the following information: Object reference not set to an instance of an object. Stack Trace: at Syncfusion.Windows.Forms.Tools.DockingManager.set_DHCInFocus(DockHostController value) at Syncfusion.Windows.Forms.Tools.DockHost.WndProc(Message& msg) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) --------------------------- Abort Retry Ignore --------------------------- Things go downhill from here and the app exits. Now I think I've determined that the cause of this is hiding a control before the DockingManager has finished loading a new dock state and fired NewDockStateEndLoad. So, can you confirm that you should not alter the dock state of controls in the managers collection before this event has fired? It makes sense, but if that's the case, you should throw an InvalidOperationException when the attempt is made. Thanks, Sean

Administrator [Syncfusion]
Replied On September 8, 2003 05:12 PM UTC

Hi Sean, No, You should not alter the dock state of the controls before the NewDockStateEndLoad event is fired. The following Knowledge Base article provides you more information on this. http://www.syncfusion.com/KB/Tools/Tools_c35c.asp#q564q We have considered your suggestion for the InvalidOperationException to be thrown when such an attempt is made, and have logged a QA report (QA# 275) in this regard. Thank you. Regards, Guru Patwal.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon