> Are you sure you're using dr4? Line 5321 is right in the middle of a
> comment block :-)
I should have said. I'm using the dr4 non-ez debug ROM for testing.
> But in any case, the only matching message is right at
> the start of FldSetSelection, lines 5344 & 5345, and this is its check:
> ErrNonFatalDisplayIf(startPosition > fldP->textLen || endPosition >
> fldP->textLen, "Bad field selection");
>
> >I had a look at the field in question and it has textLen, selFirstPos and
> >selLastPos all equal to 6.
>
> startPosition and endPosition are the parameters passed in. So I'm not
> sure why you're seeing what you're seeing, if indeed the parameters are as
> you say. Probably worth double-checking.
When this hits, it's in SysHandleEvent. The event is a keyDown with
vchrKeyboard. To find the field I looked at each register in turn and dumped
memory. Here's the contents:
id 04c2
rect 002c 0054 005e 0012
attr fa40
text 000027b8 (9a c6 64 43 41 a1 00)
texth 00001878
lines 00000000
textLen 0006
textBlock 0014
maxChars 0013
selFirst 0006
selLast 0006
insX 0000
insY 0000
etc.
If you think this could be an OS bug I'm happy to send you my prc. I've
spent a number of days on this already.
Stephen Best
Bitware Australia
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html