>> Any ideas to quickly find my database without the need to call the slow
>> DmFindDatabase, DmGetNextDatabaseByTypeCreator, or
>> DmOpenDatabaseByTypeCreator, etc.?
> 
> Hmm. I always use DmFindDatabase().  Is that particularly slow?  I haven't
> noticed it being, but I'm not calling it 50 times a minute or anything. It's
> certainly fast enough if you just want to grab the occasional DB and open
> it.
> 
> Again according to POSB (palm os bible), the LocalID will be valid as long
> as the database is open.  After that all bets are off.  So I think you
> either have to call DmFindDatabase() or keep the DBs open for the life of
> your app.

I use DmGetNextDatabaseByTypeCreator to get a list of the databases
available to my program (often called 15 - 20 times) when my app is
launched, and haven't noticed any particular slowdown doing this.

Of course, I'm not doing any type of real-time communication either.


-Tom


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

Reply via email to