Invalid Caret Position Error When Using Addict 3 Spell Check

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Invalid Caret Position Error When Using Addict 3 Spell Check

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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?
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

I've responded to this in e-mail.
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post 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
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post 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 :-(
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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?
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

Yes it is. Thank you, Sergey.
Post Reply