Hello,
Is there a way to detect if a device is using NVFS and Db Cache? And then
detect how much free DB Cache is available?
At present I use the following code snippet, but this does not tell me if the
returned value is definitely DB Cache. It just tells me the free memory on this
heap.
void GetDBCacheMemory(UInt32 & aFreeMem)
{
UInt16 storageHeapId = 1;
UInt32 maxSize = 0;
aFreeMem = 0;
MemHeapFreeBytes(storageHeapId | dbCacheFlag, &aFreeMem, &maxSize);
}
Thanks,
Ryan
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/