I have some troubles with MemHandleNew !

UInt32 tb_size = StrLen(MyStr);
UInt8* tb;
MemHandle tb_h = MemHandleNew(tb_size); // here is the problem !
tb = (UInt8*)MemHandleLock(tb_h);
...

everything is OK if tb_size is not too big,
for example if tb_size = 4294952512, then tb_h = NULL, then FATAL ERROR !!
<joke>
Its a hardware problem. You need to upgrade your PDA to 4 GB of memory. Then it will work.
</joke>

Hint: Figure out why tb_size is so large..

/V


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

Reply via email to