I have an application that loads code from standalone code resources in a 
second application. The second application also has form resources, but I don't 
use those.  At first, I had errors because the resources in the second 
application were being read and opened first (since PalmOS tries to use 
resources in the most recently opened resource database.)

One thing I tried that worked is to change the index of form resources in one 
or the other application so they do not conflict.

A second thing that works, even when the form resource indexes would normally 
conflict is:

Application1 starts
Application1 opens Application2 database and keeps it open
Application1 opens Application1 database (again) and keeps it open
Application1 launches its form. Since Application1 opened its own database 
after opening Application2's database, Application1 is the most recently opened 
database and resources are read from it first.

When Application1 exits:
Close Application2 database
Close Application1 database

This seems to work fine.

Are there any problems anyone knows of with this second method?  Is there 
another method that is better?
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to