At 12:00am -0800 03-03-01, Palm Developer Forum digest wrote:
Thanks for the tip. I had read that thread, and others that are similar, but
I could not find what specifically causes the error. Others that have had
similar errors have different scenarios that don't apply to what I am doing.

It would be nice if someone who understands the process that Palm goes
through could shed light on what the OS is trying to do, then I might figure
out what I am doing wrong.

FldSetSelection will display this error on a debug ROM if you pass it a starting or an ending offset that is greater than the length of the text in the field.


Based on the stack crawl in your original email, it's the on-screen keyboard who is calling FldSetSelection. It does this when the keyboard form has been dismissed, while trying to transfer the selection info from the keyboard form's field to the actual field in your form.

For this to trigger an error, there is probably a bug in either the field code or the on-screen keyboard code.

Based on the solution posted by Hal Mueller previously, my guess would be that the bug is in the field code, when processing events for a field with an invisible insertion point.

Unfortunately none of this really helps to solve your problem. It would be useful if you could provide more details about the field that triggers this error - for example, its size, font, attributes, etc. Also if you can dump the contents of the field being passed to FldSetSelection, that would also be useful.

-- Ken

"Michael Yam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


 I get this in Gremlins now and then also.  Hal Mueller, who also got this
 error message, solved the problem for himself, but his solution did not
work
for me. Here's his post from the archives:

http://groups.yahoo.com/group/palm-dev-forum/message/77779

It might work for you.

Regards,

 Michael Yam
 www.ytechnology.com

-- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to