1
edit
Changes
→Help
2. Does *strOffset go beyond (>string's len)? then, set to a valid value;<br/>
3. If *curPosition > fieldLength? or > strlen? or *curpostion > strlen-*stroffset,if it is, then reset it to an appropriate value.<br/>
I hope these can help you to solve you your problem.--hqiao3<br/>
<hr />
<hr/>
I saw your code, I think there might be not correct in line 9. 'maxStrLength' is not Length of *Str (len of "abc\0" is 4, but the size of str may be 10. when display the *str, the cursor will stay on the wrong position. --hqiao3