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/
