Bug #64938 Unexpected Error while doing a Find
Submitted: 11 Apr 2012 8:35 Modified: 13 Dec 2012 17:59
Reporter: Daniel Teunkens Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.38 OS:Windows (Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 64-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[11 Apr 2012 8:35] Daniel Teunkens
Description:
SQL Editor, opened an sql-file and did a Find-and-Replace. Closed that one tab with the sql-file but kept the Find-and-Replace window open. Then opened another SQL-file, put the cursor in that file and clicked "Find next" in the Find-and-Replace window -> an "Unexpected error", each and every time.

How to repeat:
See the details I included in "Description"
[11 Apr 2012 10:55] Valeriy Kravchuk
Thank you for the bug report. Verified on 32-bit Windows XP also. Stack trace is:

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)
[13 Dec 2012 17:59] Philip Olson
This is a duplicate of MySQL Bug #64569 -- which is closed.