Bug #50937 This error happend when I close SQLEditor and then I try to check a database
Submitted: 5 Feb 2010 6:11 Modified: 10 Mar 2010 11:36
Reporter: Carlos Pereira Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:Last OS:Windows (WinXP SP3)
Assigned to: CPU Architecture:Any
Tags: Error in protected memory. Sometimes could be damage memory but is not my issue

[5 Feb 2010 6:11] Carlos Pereira
Description:
This other error happened when I try to use the function CopyBugInfoToAClipboard

Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración 
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.Threading.ThreadStateException: El subproceso actual debe establecerse en el modo de subprocesamiento controlado simple (Single Thread Apartment, STA) para poder realizar llamadas OLE. Asegúrese de que la función Main tiene marcado STAThreadAttribute.
   en System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
   en System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   en System.Windows.Forms.Clipboard.SetText(String text)
   en MySQL.GUI.Workbench.ExceptionDialog.copyInfoButton_Click(Object sender, EventArgs e)
   en System.Windows.Forms.Control.OnClick(EventArgs e)
   en System.Windows.Forms.Button.OnClick(EventArgs e)
   en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.ButtonBase.WndProc(Message& m)
   en System.Windows.Forms.Button.WndProc(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Ensamblados cargados **************
mscorlib
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3603 (GDR.050727-3600)
    Código base: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MySQLWorkbench
    Versión del ensamblado: 5.2.15.5053
    Versión Win32: 5.2.15.5053
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/MySQLWorkbench.exe
----------------------------------------
wbprivate.wr
    Versión del ensamblado: 0.0.0.0
    Versión Win32: 
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/wbprivate.wr.DLL
----------------------------------------
wbpublic.wr
    Versión del ensamblado: 0.0.0.0
    Versión Win32: 
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/wbpublic.wr.DLL
----------------------------------------
System.Windows.Forms
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Código base: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Código base: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Código base: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MySQLCsUtilities
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 1.0.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/MySQLCsUtilities.DLL
----------------------------------------
msvcm90
    Versión del ensamblado: 9.0.30729.4148
    Versión Win32: 9.00.30729.4148
    Código base: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e/msvcm90.dll
----------------------------------------
WeifenLuo.WinFormsUI.Docking
    Versión del ensamblado: 2.2.3686.32759
    Versión Win32: 2.2.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
WbPlugins
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 1.0.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/WbPlugins.DLL
----------------------------------------
Aga.Controls
    Versión del ensamblado: 1.6.0.0
    Versión Win32: 1.6.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/Aga.Controls.DLL
----------------------------------------
System.Windows.Forms.resources
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Código base: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
grt.db.fe
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 1.0.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/grt.db.fe.DLL
----------------------------------------
mscorlib.resources
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3603 (GDR.050727-3600)
    Código base: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
grt.helpers.be
    Versión del ensamblado: 1.0.0.0
    Versión Win32: 1.0.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/grt.helpers.be.DLL
----------------------------------------
sqlide.fe
    Versión del ensamblado: 0.0.0.0
    Versión Win32: 0.0.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/sqlide.fe.DLL
----------------------------------------
ScintillaNet
    Versión del ensamblado: 2.0.3686.32817
    Versión Win32: 2.0.0.0
    Código base: file:///E:/Archivos%20de%20programa/MySQL/MySQL%20Workbench%205.2%20OSS/ScintillaNet.DLL
----------------------------------------
System.Xml
    Versión del ensamblado: 2.0.0.0
    Versión Win32: 2.0.50727.3082 (QFE.050727-3000)
    Código base: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.

How to repeat:
This error happend when I close SQLEditor and then I try to check a database

Suggested fix:
Flush the Schemata section when I close the SQLEditor
[5 Feb 2010 8:50] Johannes Taxacher
Hello Carlos,

what do you mean by "trying to check a database"? did you switch from query editor to he homescreen (without explicitly closing the SQL Editor) or did you intentionally close the SQL-Editor tab?
[6 Feb 2010 18:05] Carlos Pereira
This error happends where I use a slow machine!!! In my case while SQLEditor tab is closening I clic on a catalog in Schemata and I receive this error.

But I am trying to repeat this error and I could not repeat it!!!!
[7 Feb 2010 14:38] Valeriy Kravchuk
If you'll be able to reproduce this, please, send the exact steps used.
[8 Feb 2010 3:02] Carlos Pereira
Again, This error happend when I use a slow machine!!! 

In my case while SQLEditor tab is closening  (it's not completely closed), if you could make a clic on a catalog from the Schemata you could probably receive this error.

But I am trying to repeat this error and I could not repeat it, because my machine does not close this tab very slowly like in past moment!!!

Sorry for my bad english!!!
[9 Feb 2010 12:37] MySQL Verification Team
I couldn't repeat on my 32-bit XP machine.
[10 Feb 2010 11:36] Susanne Ebrecht
Is it related to huge load on your Windows system?
[11 Mar 2010 0:01] 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".