Bug #64897 Crash when viewing a snippet after his window closed by Alt+F4
Submitted: 7 Apr 2012 14:13 Modified: 13 Dec 2012 17:44
Reporter: Vadim Sadovsky Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.39, 5.2.40 OS:Windows (Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 32-bit)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[7 Apr 2012 14:13] Vadim Sadovsky
Description:
Until then, I have not found ways to close the "PopoverControl" except by Alt+F4.
The next time I opened the snippet by double-clicking the mouse, Workbench was crashed.

How to repeat:
Open and close the snippet popup via Alt+F4.
Close and open "SQL Additions" panel. (likely can skip)
Open first SQL DML snippet.
[24 Apr 2012 23:22] MySQL Verification Team
Thank you for the bug report.

Exception = System.ObjectDisposedException
Message = Cannot access a disposed object.
Object name: 'PopoverControl'.
FullText = System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'PopoverControl'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Form.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.PointToClientInternal(Point p)
   at MySQL.Forms.PopoverControl.ComputeOutline()
   at MySQL.Forms.PopoverControl.UpdateAndShowPopover(Boolean doAnimated)
   at MySQL.Forms.PopoverControl.Show(Int32 x, Int32 y, StartPosition position)
   at MySQL.Forms.PopoverImpl.show(Popover* self, Int32 spot_x, Int32 spot_y, StartPosition position)
   at MySQL.MCallback4<void\,mforms::Popover \*\,int\,int\,enum mforms::StartPosition>.cpp_callback(Popover* a1, Int32 a2, Int32 a3, StartPosition a4)
   at MySQL.Forms.DrawBoxImpl.drawbox_mouse_double_click(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.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)
[28 Jun 2012 7:58] Mike Lischke
Vadim,

I wonder how you managed to only close the popover with Alt+F4. This hotkey closes the entire WB Window (and hence the application) not just the popover.

For closing the popover: what's wrong with the "Done" button?
[28 Jun 2012 10:39] Vadim Sadovsky
At that time there was no buttons Edit and Done. I do not know why.
But now the buttons do not disappear. (5.2.40 CE)
You may close the bug.
[2 Jul 2012 8:53] Vadim Sadovsky
I do not know how to repeat, but there is a problem:
http://s.es4.ru/02124105.png

It would be nice to close the window by clicking outside. (not while editing)