Toad World® Forums

Code Complete Crashing


In an editor window I type:

select *

from AdventureWorks.dbo.

Code Complete Object List Crash 1.jpeg

and the list of objects pops up. I then type “e” to filter the list and I I get a box with a red “X” and an error message with the text below.

Code Complete Object List Crash 2.jpeg


Index and length must refer to a location within the string.
Parameter name: length
Stack Trace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at System.String.Substring(Int32 startIndex, Int32 length)
at Quest.Toad.Editor.CodeCompletionControl.treeList_CustomDrawNodeCell(Object sender, CustomDrawNodeCellEventArgs e)
at DevExpress.XtraTreeList.TreeList.RaiseCustomDrawNodeCell(CustomDrawNodeCellEventArgs e)
at DevExpress.XtraTreeList.Painter.TreeListPainter.DrawCell(CellInfo cell)
at DevExpress.XtraTreeList.Painter.TreeListPainter.DrawCells(RowInfo ri)
at DevExpress.XtraTreeList.Painter.TreeListPainter.DrawRow(TreeListDrawInfo e, RowInfo ri)
at DevExpress.XtraTreeList.Painter.TreeListPainter.DrawRows()
at DevExpress.XtraTreeList.Painter.TreeListPainter.DoDraw(TreeListViewInfo viewInfo, DXPaintEventArgs e)
at DevExpress.XtraTreeList.TreeList.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraTreeList.TreeList.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)


Forgot to add, this is Toad Beta


I should also mention that until this is fixed (I am assuming until the next beta release) that this version is basically worthless for testing for me at least as I need to write queries and with this happening, I cannot.


Hello msprygada,

This issue will not wait until the next beta drop. We will update the beta in the next couple of hours. I apologize for the inconvenience.


Hello msprygada,

Just to give an update the new beta will be posted tomorrow morning to make sure we have enough time to review this issue.



Hello msprygada,

The build has been updated to 2705.



Just downloaded and tested and Code Complete appears to be working again.