Posted 19 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
I found a bug in SyntaxEditor IntelliPromptMemberList that is causing Syntax Editor to crash.
1) Open Sample Application with C# Language
2) Open a new, blank document
3) Type the following text to start an XML command and trigger a member list "/// <"
4) When the MemberList appears, type "c" (first item "c" is now selected)
5) Hit "Ctrl+Backspace" ... you'll crash with the following ArgumentException:
The offset '5' added to the length '1' must be less than or equal to the count of characters in the document.
This appears to only happen when the caret is positioned at the end of the document when the member list is displayed.
Have fun! :)
1) Open Sample Application with C# Language
2) Open a new, blank document
3) Type the following text to start an XML command and trigger a member list "/// <"
4) When the MemberList appears, type "c" (first item "c" is now selected)
5) Hit "Ctrl+Backspace" ... you'll crash with the following ArgumentException:
The offset '5' added to the length '1' must be less than or equal to the count of characters in the document.
This appears to only happen when the caret is positioned at the end of the document when the member list is displayed.
Have fun! :)