My tests indicate that this cache is generated the first time a database is launched. Normally, a DB is launched immediately after installation with a sync notify command. However, if you install a PRC file via other means, like dragging it into the simulator or downloading it through the debugger, the cache isn't created until you start execution or the program. I expect that Palm OS treats 'panl' apps like 'appl' apps for sync notification purposes, but that's not been verified.PACE normally deals with shadow versions of the resources in your 68K apps -- this is a converted version of the resource that follows ARM byte ordering and structure packing rules. These shadow structures are stored in the 'a68k'-typed databases.Looks like OS5 creates these a68k resource caches for where type == 'appl || 'panl', with the sole exception of HotSync.
While your application is running in the emulator, take a moment to use the view/Databases commmand and you can see one of these DBs created for your app. It will have the currently active set of resources, all in their ARM-native formats. This DB will keep the cached structures until the application closes, when they'll be removed.
Can I safely infer from this that these files are created on an as-needed basis by OS 5? I'm working with a utility that backs up a Palm device. From what you're telling me, it sounds like I can safely skip backing up (and restoring) any file with crId == a68k. Moreover, it sounds like I -want- to skip them to avoid the rare event of restoring a stale cache file on top of a fresh version.I think that is a good assumption, but I don't know of official documentation about this.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
