Exception when using a floating ToolWindows and ToolStrip

Docking/MDI for Windows Forms Forum

Posted 12 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Version: 2.0.0093
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
Hi,

An exception is raised when using a floating ToolWindows containing ToolStrip.

To reproduce it,

* In a floating window : display the tooltip of the toolstrip
* dock the ToolWindow
* Try to display the same tooltip

The following exception is raised :

Cannot access a disposed object.
Object name: 'fy'.

------- Stack Trace -------
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.ToolTip.get_CreateParams()
at System.Windows.Forms.ToolTip.CreateHandle()
at System.Windows.Forms.ToolTip.Hide(IWin32Window win)
at System.Windows.Forms.ToolStrip.UpdateToolTip(ToolStripItem item)
at System.Windows.Forms.ToolStripItem.OnMouseHover(EventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.MouseHoverTimer.OnTick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any idea to solve it ?

Thanks for your help

Regards

Stéphane

Comments (2)

Posted 12 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Avatar
... I've just found that topic on the forum
and I think that it's the same problem !!! :-(

http://www.actiprosoftware.com/Support/Forums/ViewForumTopic.aspx?ForumTopicID=1665#5918
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, this issue can easily be duplicated without even using our controls and just moving the ToolStrip to different parent Forms. Unfortunately we have not found a workaround for it since the bug is so deep in Microsoft's code.


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.