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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeViewAdv disposal issue

Thread ID:




40208 Jan 27,2006 03:12 PM UTC WinForms 0
Tags: Tools
Ken Overton
Asked On January 27, 2006 03:12 PM UTC

We have a dialog using the TreeViewAdv and TreeViewAdvDragHighlightTracker. Ever so rarely, users get this exception thrown when the dialog is disposing. Is there some order to how the TreeViewAdv should be disposed? I.e., could it be due to the highlight tracker being set to null before disposal of the TreeViewAdv? Should those 2 be reversed? Here''s my exception: Unhandled exception System.ObjectDisposedException Context: Triggered top level exception handler Exception in System.Windows.Forms Message: Cannot access a disposed object named "TreeViewAdv". Object name: "TreeViewAdv". Stack: at System.Windows.Forms.Control.CreateHandle() at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.RectangleToScreen(Rectangle r) at Syncfusion.Windows.Forms.ToolTipAdv.Label_MouseMove(Object sender, MouseEventArgs e) at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Label.WndProc(Message& m) 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)


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

or the page will be automatically redirected to 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