Bug #66038 'Cannot access a disposed object' exception when applying config file changes
Submitted: 26 Jul 2012 21:43 Modified: 22 Feb 2013 15:13
Reporter: Timothy Liang Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Workbench: Administration Severity:S3 (Non-critical)
Version:5.2.42 OS:Windows (Microsoft (build 8400), 64-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[26 Jul 2012 21:43] Timothy Liang
After applying changes to a config file twice in Administrator, this exception occurs.

----- Developer Notes -----

MySQL Workbench CE for Windows version 5.2.41  revision 9727
Configuration Directory: C:\Users\Timothy\AppData\Roaming\MySQL\Workbench
Data Directory: C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE
Cairo Version: 1.8.8
OS: Microsoft  (build 8400), 64-bit
CPU: 8x Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz, 8.0 GiB RAM
Current user language: English (United States)

Exception = System.ObjectDisposedException
Message = Cannot access a disposed object.
Object name: 'Button'.
FullText = System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Button'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.PointToScreen(Point p)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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)

How to repeat:
Change configuration options, apply, change more options, and apply again
[27 Jul 2012 19:55] Johannes Taxacher
Hi Timothy,

i cannot reproduce the problem here on windows 7 x64. Does this happen only when changing specific config settings, or specific types of settings (like only with textbox-based parameters, or only when changing checkbox-parameters).
Also are you using an Administrator account to run Workbench or are you asked by the User Account Control each time you apply changes to the file?
thanks in advance
[27 Jul 2012 22:18] Timothy Liang
Hi Johannes,

My apologies; it seems that the steps to reproduce the bug are incorrect.  I can repeat it reliably by using a remote Linux server and furiously clicking the apply button.  There does not have to be any actual changes to the file.

[13 Aug 2012 23:15] MySQL Verification Team
Please try version 5.2.42. Thanks.
[14 Aug 2012 1:51] Timothy Liang
Still present in 5.2.42.
[16 Sep 2012 0:11] MySQL Verification Team
Please try version 5.2.43. Thanks.
[16 Sep 2012 0:16] Timothy Liang
Still present in 5.2.43.
[22 Jan 2013 15:13] MySQL Verification Team
Please try version 5.2.45 and if the issue continues provide step by step instructions how you get that issue. Thanks.
[23 Feb 2013 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".