In this line:
aux1H=MemHandleNew(StrLen(record1.fields[field]));

I get this errors when debugging in a Palm III dbg rom using the Palm
emulator.
"Non-free chunk in free list"
"trying to use non-free chunk"

Why does this happen?

By the way, this is a piece of my code where I use MemHandleNew:

        ...
        aux1H=MemHandleNew(StrLen(record1.fields[field]));
        if (!aux1H)
        {
                FrmAlert(DeviceFullAlert);
                return;
        }

        aux1P=MemHandleLock(aux1H);
        aux1P="Something";
        MemHandleUnlock(aux1H);
//      MemHandleFree(aux1H);
        ...

I don't use the last line because if I do, the debugger stops at it for no
reason and doesn't continue.



Thanks.

______________________________
Nuno Basto
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ #: 67434508
Yahoo ID: nunopresley
MSN ID: nunobasto

The king is dead... the legend lives on...
______________________________________________


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