One question: in the thread, Ben Combee said "The memory manager should keep a record active in the DB cache if [...] it's locked...". Does this mean MemHandleLock was called on the MemHandle returned by DmQueryRecord or DmGetRecord? If not, how do I "lock" a record? There is no DmLockHandle API in my SDK 5.4 reference.

On Palm OS 5.4.9, MemHandleLock knows if the handle is from a database or the dynamic heap. If it's from a DB, it handles loading it from the NVFS file system into the DB cache, and likewise, a MemHandleUnlock allows the OS to remove the actual data from the DB cache until it's locked again.


-- 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/

Reply via email to