Bug #61462 Index was out of range.
Submitted: 9 Jun 2011 15:01 Modified: 10 Jun 2011 17:19
Reporter: Thomas Johnson Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.34 CE OS:Windows (Win 7 x 64 pro)
Assigned to: CPU Architecture:Any
Tags: Index was out of range

[9 Jun 2011 15:01] Thomas Johnson
Description:
Index was out of range.  Must be non-negative and less than the size of the collection.
Parameter name: index

How to repeat:
Randomly comes up when working in SQL Editor for long periods of time when conencted to multiple databases.  Last thing I may have done was drop/create a procedure or two through the command line, therefore changing the schema behind the editor.

Suggested fix:
No error
[9 Jun 2011 15:02] Alfredo Kojima
If this happens again, please right click in the blank area in the bug dialog below the WB icon and select Copy Stacktrace, then paste in this report. Thanks
[9 Jun 2011 16:02] Thomas Johnson
Here is the stack trace:
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.Collections.ArrayList.get_Item(Int32 index)
   at System.Windows.Forms.DataGridViewColumnCollection.get_Item(Int32 index)
   at System.Windows.Forms.DataGridView.PositionEditingControl(Boolean setLocation, Boolean setSize, Boolean setFocus)
   at System.Windows.Forms.DataGridView.OnLayout(LayoutEventArgs e)
   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.PerformLayout()
   at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
   at System.Windows.Forms.Control.set_Dock(DockStyle value)
   at MySQL.GUI.Workbench.DbSqlEditor.onSizeChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(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)
[10 Jun 2011 17:19] Alfredo Kojima
Thanks for the trace, this bug is a duplicate of bug #61279