Posted 20 years ago
by painetraine
I am running into errors that are occurring in the ProcessCmdKey handler that are causing me some problems.
I am currently using v2.0.3 so I don't know if it's fixed in 2.0.5 or not but the release notes didn't address it.
To duplicate:
1. In the sample application, remove the ending } that matches the namespace { for C#
2. Place the cursor at the end of the document
3. Collapse the namespace +
4. Open the namespace +
5. Press the enter key
The editor throws an exception saying something to the effect of
offset NNN added to the length 1 must be less than or equal to the count of characters in the document.
The stack refers to
SyntaxEditor.Document.[](int 32, int 32)
SyntaxEditor.Document.GetSubstring...
SyntaxEditor.Token.get_Text
SyntaxEditor.AutoReplaceEntryCollection.[]
(Sorry for the crappy stack trace, the PC that I am developing on isn't connected.)
Thanks
I am currently using v2.0.3 so I don't know if it's fixed in 2.0.5 or not but the release notes didn't address it.
To duplicate:
1. In the sample application, remove the ending } that matches the namespace { for C#
2. Place the cursor at the end of the document
3. Collapse the namespace +
4. Open the namespace +
5. Press the enter key
The editor throws an exception saying something to the effect of
offset NNN added to the length 1 must be less than or equal to the count of characters in the document.
The stack refers to
SyntaxEditor.Document.[](int 32, int 32)
SyntaxEditor.Document.GetSubstring...
SyntaxEditor.Token.get_Text
SyntaxEditor.AutoReplaceEntryCollection.[]
(Sorry for the crappy stack trace, the PC that I am developing on isn't connected.)
Thanks