"Thomas Ward" <[EMAIL PROTECTED]> wrote in message
news:32152@palm-dev-forum...
> 1. What is the maximum allowed protection count? If I do a
DmDatabaseProtect
> each time my app runs, I'm afraid I will eventually exceed the maximum.

For RAM-based applications, just protect your database on
sysAppLaunchCmdSyncNotify. That'll only happen once if you don't have a
conduit. Alternatively, you can use a flag of some kind. For example, you
could check if you have a preference record. If not, create one and protect
yourself. Shared libraries are automatically protected when they're loaded.

The database protect count is stored in the dynamic heap, not in the
database itself. It's an 8-bit unsigned value, so you can protect a database
up to 255 times.
--
Danny Epstein
OS Engineer, Palm Inc.


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

Reply via email to