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.

TreeViewAdv disposal issue

Thread ID:

Created:

Platform:

Replies:

40208 Jan 27,2006 10:12 AM Windows Forms 0
loading
Tags: Tools
Ken Overton
Asked On January 27, 2006 10:12 AM

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)

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.

;