Toad World® Forums

Toad Insight - Update issue Exception Error


#1

Here’s another scenario. This time I was typing an update statement and instead
of letting me type a table name after the word update, Toad just grabbed the
first table in the list, and dumped in all the fields in the table in what looks
like a fillable code snippet then displayed an exception:

System.ArgumentException

The text range ‘{StartOffset=69,EndOffset=78}’ must be less than or equal to the
count of characters in the document.

Stack Trace:

at ActiproSoftware.SyntaxEditor.TextRange.a(Document A_0)

at ActiproSoftware.SyntaxEditor.Document.GetSubstring(TextRange textRange,
LineTerminator lineTerminator)

at ActiproSoftware.SyntaxEditor.Document.GetSubstring(Int32 offset, Int32
length, LineTerminator lineTerminator)

at ActiproSoftware.SyntaxEditor.Document.b(DocumentModificationType A_0, Int32
A_1, Int32 A_2, String A_3, DocumentModificationOptions A_4, WeakReference A_5)

at ActiproSoftware.SyntaxEditor.Document.a(DocumentModificationType A_0, Int32
A_1, Int32 A_2, DocumentModificationOptions A_3, WeakReference A_4)

at ActiproSoftware.SyntaxEditor.Document.DeleteText(DocumentModificationType
type, Int32 offset, Int32 length, DocumentModificationOptions options)

at ActiproSoftware.SyntaxEditor.Document.DeleteText(DocumentModificationType
type, Int32 offset, Int32 length)

at Quest.Toad.CodeInsight.InsightItem.InsertItem(EditorControl control, Int32
offset, Int32 deleteLength, IInsightItem[] otherItems)

at Quest.Toad.Editor.CodeCompletionControl.InsertSelection()

at

Quest.Toad.Editor.CodeCompletionControl.System.Windows.Forms.IMessageFilter.PreFilterMessage(Message&
m)

Darren

image004.png
image001.png