Hi.  I have had similiar kind of things happened to me.  You best bet is the
API reference at palmos.com.

The comment for the FldGetTextPtr says this:
--------------------------------------
The pointer returned by this function can become invalid if the user edits the
text after you obtain the pointer. 

Do not modify the contents of the pointer yourself. If you change the text
while it is being used by a field, the field's internal structures specifying
the text length, allocated size, and word wrapping information can become out
of sync. To avoid this problem, follow the instructions given under
FldGetTextHandle. 

-----------------------------

There shouldn't be any surprise. :)

Max

--- Dave Mottorn <[EMAIL PROTECTED]> wrote:
>       That worked.  I thought FldGetTextPtr returned a locked pointer.  How does
> it get unlocked?
> 
>       Is there a better reference available than what I'm using?  I'm working on
> a very simple application but I'm pretty well committed to do some things
> that are a lot more complicated.
> 
> regards,
> 
> Dave Mottorn
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brian
> Smith
> Sent: Monday, November 26, 2001 9:41 AM
> To: Palm Developer Forum
> Subject: RE: Editing Fields
> 
> 
> It looks like the problem is in your ReadField function.  Either get rid
> of the call to MemPtrUnlock that's in there, or use the FldGetTextHandle
> instead.
> 
> ----------------------------------------------------------------------
> Brian Smith  //   [EMAIL PROTECTED]   //  http://www.arthurian.nu/
> Software Developer  //  Gamer  //  Webmaster  //  System Administrator
> Bumper sticker: If you can read this, I can hit my brakes and sue you.
> 
> 
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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

Reply via email to