Bug #64569 Closing a Find/Replace Dialog Box after closing its editor tab crashes WB.
Submitted: 6 Mar 2012 19:45 Modified: 23 Jul 2012 23:21
Reporter: David Berg Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.37, 5.2.38 OS:Windows (Microsoft Windows XP Professional Service Pack 3 (build 2600))
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[6 Mar 2012 19:45] David Berg
Description:
If you close an SQL Editor Tab that has a Find/Replace dialog box open, subsequently closing the Find/Replace dialog box crashes Workbench.

How to repeat:
- Open a Workbench SQL Editor Tab from an existing script file - or type in new text.
- Open a Find/Replace dialog box associated with this tab.
- Enter a Find string and press Find Next. (Not sure this step is required, but it replicates the scenario I followed.)
- Close the SQL Editor Tab. (Find/Replace dialog box remains open.)
- Then [attempt to] close the Find/Replace dialog box.
[6 Mar 2012 20:22] Valeriy Kravchuk
Thank you for the bug report. Verified on 32-bit Windows XP. Same stack trace:

Exception = System.ObjectDisposedException
Message = Cannot access a disposed object.
Object name: 'SqlEditor'.
FullText = System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'SqlEditor'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.PointToScreen(Point p)
   at ScintillaNet.FindReplaceDialog.moveFormAwayFromSelection()
   at ScintillaNet.FindReplaceDialog.OnActivated(EventArgs e)
   at System.Windows.Forms.Form.set_Active(Boolean value)
   at System.Windows.Forms.Form.WmActivate(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[23 Jul 2012 23:21] Philip Olson
This has been fixed as of the soon-to-be-released Workbench 5.2.41, and 
here's the changelog entry:

Closing an SQL Editor tab that had a "Find/Replace" dialog box open, then
subsequently closing the "Find/Replace" dialog box would crash
MySQL Workbench.