ok. thanks.
----- Original Message -----
From: "G. Kalyana Sundaram" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Tuesday, March 07, 2006 10:38 PM
Subject: RE: Random Crashes with NVFS - need help with locking and
protecting app
Hello,
I followed the steps outlined by Ben in other thread and used DMGetRecord
instead of DMQueryRecord in the notification callbacks and alarm
procedures.
Steps for Locking the App:
// As Described by Ben Combee
STEP1: DmOpenDatabase
STEP2: DmProtectDatabase (now you have to use DmDatabaseProtect)
STEP3: DmGetResource
STEP4: ptr = DmLockHandle
STEP5: store the handle in some place and write a mechanism that the lock
count and protection count is not incremented (only 14 locks are allowed
on
a record that's why)
STEP6: DmCloseDatabase
Hope this helps you.
Regards,
G. Kalyana Sundaram.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of PalmDev
Sent: Wednesday, March 08, 2006 10:30 AM
To: Palm Developer Forum
Subject: Re: Random Crashes with NVFS - need help with locking and
protecting app
just curious. which API do you use to lock the segments and libs?
thanks
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 3/6/2006
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/