"Erik Shreve" <[EMAIL PROTECTED]> wrote in message
news:<14043@palm-dev-forum>...
> MemPtrUnlock (AboutString );
> FldSetTextPtr(fldPtr, AboutString);
Erik,
this is passing an pointer to an unlocked chunk. Very Bad Things are sure to
follow.
omit the MemPtrUnlock call before calling FldSetTextPtr (assuming this field
is non-editable.) you will also have to free the chunk and release the
resource associated with this pointer before you change the Field text, and
when the Form is closed. basic flow is:
Char* textP = FldGetTextPtr( fldP );
FldSetTextPtr( fldP, NULL );
MemHandle textH = MemPtrRecoverHandle( textP );
MemHandleUnlock( textH );
DmReleaseResource( textH );
...steve
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/