"Michael S. Davis" <[EMAIL PROTECTED]> wrote in message
news:17264@palm-dev-forum...
> Again here is the requirement:  App1 calls App2 and expects App2 to do
> something and return data.  App2 REQUIRES global space to do it's
> job.  What is the best way to accomplish this.

I don't know about "best", but here's an idea that might work. App1 stores
its creator ID and any parameters in some globally accessible location and
then switches to App2. App2 notices the global data and realizes that it was
launched by App1. It does what it's supposed to do, storing the result back
in the global location, and then switches back to App1. App1 notices that it
was launched via a return from App2 and continues what it was doing, using
the global data.

The global data could be stored in a database or in the dynamic heap (with
owner ID 0), pointed to via a feature. It would include a state enum with
values "launching" and "returning", a launcher creator ID, a launchee
creator ID, a parameter area, and a result area.

I haven't tried this...
--
Danny Epstein
OS Engineer, Palm Inc.


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

Reply via email to