Toad World® Forums

Editor Error Message - System.ArgumentOutOfRangeException

Crashing on this error when clicking in different areas of code in editor. Error Output:

Specified argument was out of the range of valid values.
Parameter name: index
Stack Trace:
at ActiproSoftware.SyntaxEditor.DocumentLineCollection.get_Item(Int32 index)
at Quest.Toad.QueryBuilder.SqlBuilder.ShowDateRangeInfoIfOverLink(EditorControl editorControl)
at Quest.Toad.Editor.EditorForm.<.ctor>b__3(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnMouseUp(MouseEventArgs e)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.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.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.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)


can you please post your script from the editor you have found this issue? Many thanks in advance!

It doesn’t matter what script I have, it happens frequently,…It happens when
the script is as simple as

select a.*
from xxxxx a
where a.field = ‘zzzz’

One other thing to add to this: when the error raises, the error dialog and tab that I’m working in freezes.

Thanks for details. Can you please tell me what version of Toad do you have?


Thank you.

I’ve just double check the code with latest 5.6 and it seems to me your issue is no longer exists. Is there any chance for you to upgrade to 5.6 version?