"Nuno Basto" <[EMAIL PROTECTED]> wrote in message
news:12680@palm-dev-forum...
> aux1H=MemHandleNew(StrLen(record1.fields[field]));
> if (!aux1H)
> {
> FrmAlert(DeviceFullAlert);
> return;
> }
>
> aux1P=MemHandleLock(aux1H);
> aux1P="Something";

You're making the aux1P variable point to a different piece of memory. I
think you want StrCopy, MemMove, or something like that.

> MemHandleUnlock(aux1H);
> // MemHandleFree(aux1H);

This is unlocking (and freeing) the constant string rather than the handle
you allocated.
--
Danny Epstein
OS Engineer, Palm Inc.


-- 
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