"Michael S. Davis" <[EMAIL PROTECTED]> wrote in message
news:17236@palm-dev-forum...
>
> The one thing that would concern me about launching a 2nd application
> AND allocating globals would be that there is a fixed amount of dynamic
> heap. Since both applications would be sharing that heap (I think),
> means that one application that works when launching a 2nd does not
> guarantee that a different application can launch the same 2nd app.
Except when using SysUIAppLaunch, you never have two programs running at
once. Your program gets an appStopEvent and shuts down, then the
application you launched starts up. That's one reason why the parameter
block you send to the new app can't be owned by your original application --
it isn't there anymore when the new app processes it.
> Which brings me to another question. What IS the best method of
> communication between two applications, where you MUST have global space
> allocated in each application? One application will call (launch) the
> 2nd application and get returned data from the 2nd.
Using SysAppLaunch lets you do this, but the second app is not guaranteed to
have globals -- in fact, it will only have globals if you call yourself.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/