Hi Ben, Thanks for the early reply. It would be very kind of you if you could provide suggestions on the locking I perform. Should I lock all code segments and protect or just the first segment?
Thanks in advance. Regards, G. Kalyana Sundaram -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Combee Sent: Saturday, March 04, 2006 2:55 PM To: Palm Developer Forum Subject: Re: Random Crashes with NVFS - need help with locking and protecting app On 3/3/06, G. Kalyana Sundaram <[EMAIL PROTECTED]> wrote: > Our app is crashing randomly with NVFS systems. The app is spanning across > multiple segments, running in background. In background mode – the app uses > only code from segment 1 and makes calls to libraries. Also we read data > from databases in background mode – we use DmQueryRecord, get a handle and > lock it till the read is done. We also perform some file writing in > background (mainly for logs) – for each write – we open, write and close it > immediately. If you need to make sure the handle will stick around, don't use DmQueryRecord but use DmGetRecord/DmReleaseRecord. On pre 5.4.9 devices, the OS doesn't know when you're done with a DmQueryRecord-obtained item, so it can throw it out of memory before you've completed your work. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 3/3/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 3/3/2006 -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
