MemHeapFreeBytes tells you the free bytes on the heap you pass to it.
If you pass it (0,1) that should be the storage heap, (0,0) is the dynamic
heap.
So I do not think that is the correct answer to my question as to why I do
not see the storage heap free space shrink after FtrPtrNew().
On a device with NVFS, MemHeapFreeBytes will return the amount of free
space in the file system that holds the databases. FtrPtrNew allocates
space from the DB cache and it's never committed to the file system, so it
won't affect that number. There's a flag you can pass to MemHeapFreeBytes
to tell it to query the DB cache instead, and you should see that change
after the allocation. See the palmOne developer guide from
pluggedin.palmone.com for details.
-- Ben Combee, Senior Software Engineer, Palm, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/