Discussion:
DmGetDatabase with an incrementing index, returns same Database!
(too old to reply)
jr
2004-02-11 03:39:42 UTC
Permalink
I am cycling through all the databases by an index and calling
DmGetDatabase() to return a database ID.

Sometimes, on subsequent iterations, the exact same database is
returned (but with the different index). I only have one copy of this
database on the Palm, but this happens sporadically. This database is
of my own type (not 'appl' nor 'data'), so I'm wondering if this has
anything to do with it. When I change its type to 'appl' I don't see
this problem.

Anyone have any idea of what is going on here?

thanks!
Baxter
2004-02-11 17:39:39 UTC
Permalink
The documentation specifically states that "The order of the databases is
not fixed; therefore, you should not rely on receiving a list of databases
in a particular order."

--
-------------------------------------------------------------------------
Free software - Baxter Codeworks www.baxcode.com
-------------------------------------------------------------------------
Post by jr
I am cycling through all the databases by an index and calling
DmGetDatabase() to return a database ID.
Sometimes, on subsequent iterations, the exact same database is
returned (but with the different index). I only have one copy of this
database on the Palm, but this happens sporadically. This database is
of my own type (not 'appl' nor 'data'), so I'm wondering if this has
anything to do with it. When I change its type to 'appl' I don't see
this problem.
Anyone have any idea of what is going on here?
thanks!
Loading...