After a crash, the DmOpenRef pointer for the open database is lost, and there 
does not appear to be any way using code to recover the DmOpenRef pointer on a 
subsequent launch using the LocalID of the left-open-database. It's easy to 
find the open database's LocalID, but that seems to be where the trail goes 
cold. The only way I can get the databases closed without losing them it is to 
use FileZ (but not every user of my app will have that utility, and some may 
not know what to do even if they did), or do a hard reset and lose all eight of 
the application's open databases permanently. I'd like to write some code that, 
on the next launch of the application, checked for databases left open from a 
crash and got the open databases silently closed, but there does not seem to be 
any way to do this. Is it possible? If so, how?
If it is not possible, it strikes me as a horrible omission in the design of 
the database functionalities in Palm OS. But surely the gurus have thought of 
this problem and licked it, eh?

   Thanks --Bruce
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to