On Thursday 20 May 2004 01:20 am, RVRoadie wrote:

> Thanks, do you also use a ftr to store DB refs so you don't have to
> open/close on each callback? Same for Mathlib and other library
> references?

At first I did, but ultimately I decided against it.  Instead, I just 
layered things so that I opened things only when needed during the callback. 
For example, my old code would have an OpenDatabases() and CloseDatabases() 
function.  I have over 20 database files so it became slower and slower to 
open them all at once.  What I do now is I open a database the first time it 
is used in a session and I keep track of which ones I've opened, so that I 
can close them.

Libraries which are in use cannot be replaced, so when my code was keeping 
them open while backgrounded, I used the hotsync start/end signals as 
opportunities to close/open the libraries.  Worked ok, until I was required 
to use Nutshell installer.  Nutshell installer doesn't send the sync start 
notification, so I got stuck when upgrading libraries because I had no idea 
when the install was to occur.  That led me to change the behavior and 
open/close the libraries during each callback session.

-- 
/* Chris Faherty <[EMAIL PROTECTED]> */

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

Reply via email to