Alan Pinstein wrote:
> 
> I am working a way to improve the speed of Launch 'Em... I was thinking of
> building an array of cardNo/dbID's to use to quickly access DB's to get the
> icons at appStart. But I am worried that the cached cardNo/dbID, which I
> think is really just a ptr to a database (baseAddr of card + LocalID
> offset, right?), could be invalidated while the app is running and thus
> crash next time I try to access it. The only scenario I can think of that
> COULD invalidate them is by compacting the data heap and the only thing I
> can think of that  would cause that to occur would be receiving a DB over
> IR for instance...

   What about storing a quick checksum on the some of the data
cardNo and dbID point to and validating that before launching an
app from your cached dbID?  If it doesn't validate, you could
always use DmFindDatabase as a backup... (?)

Regards,
Daniel.

Reply via email to