Bug #64152 Failed to close SQL Editor tab

Submitted: 28 Jan 2012 7:20 Modified: 9 Feb 2012 21:07
Reporter: Roger Bass Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.37 CE Rev 8576 OS:Windows
Assigned to: CPU Architecture:Any

[28 Jan 2012 7:20] Roger Bass
Description:
Exception = System.ArgumentOutOfRangeException
Message = Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
FullText = System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at MySQL.GUI.Workbench.DbSqlEditor.OnSqlEditorTitleChange()
   at MySQL.GUI.Workbench.DbSqlEditor.OnPartialRefresh(Int32 what)
   at MySQL.Grt.RunWrappedDelegate1<void\,void\,int\,int\,MySQL::Grt::DelegateSlot1<void\,void\,int\,int>::ManagedDelegate>.native_callback(Int32* a1)
   at boost.detail.function.void_function_invoker1<void (__cdecl*)(int const &),void,int const &>.invoke(function_buffer* function_ptr, Int32* a0)
   at boost.function1<void,int const &>.()(function1<void\,int const \&>* , Int32* a0)
   at boost.detail.function.void_function_obj_invoker1<boost::function<void __cdecl(int const &)>,void,int>.invoke(function_buffer* function_obj_ptr, Int32 a0)
   at MySQL.GUI.Workbench.SqlEditorFormWrapper.can_close()
   at MySQL.GUI.Workbench.MainForm.tabControl_TabClosing(Object sender, TabClosingEventArgs e)
   at MySQL.Controls.FlatTabControl.OnTabClosing(TabClosingEventArgs args)
   at MySQL.Controls.FlatTabControl.CloseTabPage(TabPage page)
   at MySQL.Controls.FlatTabControl.OnMouseUp(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.TabControl.WndProc(Message& m)
   at MySQL.Controls.FlatTabControl.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:
not replicated
[30 Jan 2012 7:02] Valeriy Kravchuk
Was it first tab, last tab or just some intermediate one?
[30 Jan 2012 16:27] Roger Bass
I think there was only one tab open at the time
[2 Feb 2012 16:16] Alfredo Kojima
Verified by inspecting code and stack trace
[9 Feb 2012 21:07] Philip Olson
Fixed as of 5.2.38:

Closing a tab could result in an unhandled exception.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.071 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.