>'DataMgr.c, Line:2463,
>   Records left locked in closed unprotected DB'."

So I should explain this error.  The basic problem is that it's not valid
to use chunks in a database which is closed.  Once a database is closed,
something else, like the Launcher, HotSync, or the IR code can go and
delete or replace the database.  There's no prevention because the OS
thinks nothing is using the database (it's closed).

An obvious solution (other than fixing/reworking your code) is to then just
leave the database opened and leave your app/hack/extension/whatever.  The
problem is that all databases are to be closed to protect apps from other
rogue apps.

What Palm has done is it keeps a list of databases to protect from
deletion.  A protected database can be closed but not deleted.  You can
later unprotect the database.  Database protection was added for Palm OS
2.0.

So to summarize, if you need to use a chunk in a database after it's
closed, the database had better be protected or users will HotSync over it.
That's what the message is warning about.

There is a related message about leaving records busy in database.  You
don't want to do this since it prevents future requests for those records
(because they're believed to be busy).


-Roger Flores


Reply via email to