FtrPtrHeap allocates memory in the storage heap and I think that
MemHeapFreeBytes returns the free bytes in the dynamic heap. That should
be the reason the function returns the same value before and after
calling FtrPtrNew.
Miguel
ll wrote:
Hi,
I am using FtrPtrNew() to allocate a lot of storage memory, but the result of
MemHeapFreeBytes() on the storage heap does not change.
Could anyone tell me what am I failing to understand ?
My code is something like this:
MemHeapFreeBytes(MemHeapID(0,1),&lFreeMem1,&lMaxMem1);
FtrPtrNew( AppId, FTRIDMEM, 2000000, &pftrmem);
MemHeapFreeBytes(MemHeapID(0,1),&lFreeMem2,&lMaxMem2);
and afterwards, lFreeMem1 == lFreeMem2.
TIA,
R.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/