Page 1 of 1
Invalid Caret Position Error When Using Addict 3 Spell Check
Posted: Sun Feb 08, 2009 2:39 pm
by DickBryant
I'm getting an error message saying "Invalid caret position. Please contact the developer, if you can reproduce this problem" happening whenever I try to "Change" a misspelling found by the spell checker.
If I then OK that message and click "Change" again on the Spelling dialog I get a "List Index Out of Bounds (100000)" message.
I'm using TRichView 11.0.2 and Addict Version 3.4.4
I'm pretty sure the spell checker was working fine before I updated my project to TRichView 11 from TRichView 10.
Dick
Posted: Sun Feb 08, 2009 2:43 pm
by Sergey Tkachenko
Can you tell me how to reproduce it?
I just tried Addict 3.5+TRichView 11.0.3+Parser 2.1, they work fine.
Probably error occurs on some specific document?
Posted: Sun Feb 08, 2009 2:51 pm
by DickBryant
I've responded to this in e-mail.
Posted: Sun Feb 08, 2009 3:26 pm
by DickBryant
I've traced the code through
procedure TRichViewParser3.ReplaceWord( Replacement:String; State:LongInt );
and it appears to be proceeding correctly until it gets to
FEdit.SetCurrentItemText(s);
at which point the error occurs. The operation is attempting to replace the intentional misspelling "Vermonterol" (which is highlighted in the RVE) with the correction "Vermont". At the point the error occurs, the string s contains
'V'#0'e'#0'r'#0'm'#0'o'#0'n'#0't'#0
Please let me know what I can do to troubleshoot this problem further.
Dick
Posted: Sun Feb 08, 2009 3:28 pm
by DickBryant
Re: your reply above, Sergey - it does not appear to be document specific - rather a hard failure every time the program attempts to correct a misspelling.
Again, let me know what to do further on this. This is a show-stopper to releasing the new version of my program
Posted: Tue Feb 10, 2009 3:17 pm
by Sergey Tkachenko
Is this problem solved like for Addict4 (
http://www.trichview.com/forums/viewtopic.php?t=3035 ) after using the last version of the parser?
Posted: Tue Feb 10, 2009 4:26 pm
by DickBryant
Yes it is. Thank you, Sergey.