> Do you actually lock the memory anywhere, for instance?
No.
> Can't you use a linked list or something?
Yes.
I found in the docs this: This routine is always successful when shrinking the
size of a chunk.
so... I've done this : (for testing)
pDBName = (char**)MemPtrNew( sizeof( char*)*1000);
:
working with this chunck... and counting in noIndex how many chars I have at
this point..
:
then
err= MemPtrResize (pDBName, sizeof(char*)* (noIndex));
:
and in the end
for (i=0;i<noIndex;i++)
MemPtrFree(pDBName[i]);
And no error! But... It's a very dirty code... :-(
I will try to use your ideea: to use MemHandle and not MemPtr.
Regards, Iulia
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/