First, a comment: numRecs is misnamed; it contains the number of resources,
not records. Internally, we use a numRecords field to store the number of
records or resources, but don't follow our example. :)

Second, a question: what are you expecting? SysCurAppDatabase returns
different results depending on which app is running at the time. That's the
whole point. So of course you'll get different numbers of resources
depending on which app is running.

Are you finding that DmNumResources is returning stale information? It uses
a cache in the DmOpenRef, but this cache should be updated when that
DmOpenRef is used to add resources. If you use another DmOpenRef to make the
mods, I can imagine that your DmOpenRef's cache won't be updated. But the
database header should always be correct, so if you close & reopen, it
should refresh the record/resource count.
--
Danny @ Palm

-- 
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