Toad 3.5 has been giving me nothing but trouble. I get this error several times daily which kills the auto complete functionality. I have to then restart toad and guess when it is going to happen again. This occurs through normal sql server coding in the editor.
System.ArgumentOutOfRangeException
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)