Unhandled Exception in SyntaxEditor

SyntaxEditor for Windows Forms Forum

Posted 20 years ago by painetraine
Avatar
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

Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I was able to dupe it and will have it fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.