Hi All,

 

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.

 

I read posts regard to the locking application and tried locking Segment 1 and protecting it. But the crashes did not stop.

 

Should I lock all segments, libraries that are accessed and the databases as well?

 

I am using DMGetResource (‘code’, 1); I can iterate through 1- N for all segments and after locking I close the database.

But how to lock the databases – should I use DmQueryRecord, lock and close the database? – and unlock when my app it not running in background by storing the memhandles in a preference or feature?

 

Any help with regard to this is appreciated.

 

Thanks.

 

Regards,

G. Kalyana Sundaram.


--
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 outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/273 - Release Date: 3/2/2006

Reply via email to