> I've never used SysAppLaunch() for a normal launch...

That's good, because it won't work. :)

Applications assume they have access to globals on normal (and goto) launch,
but SysAppLaunch calls the app as a subroutine, so it won't have access to
its globals. (A5 will be pointing to _your_ globals.) Generally, you should
use SysUIAppSwitch with normal (and goto) launch codes. If you want to get
control when the app is done, you'll need to arrange for it to switch back
to you. Some panels support a "switch back" mechanism like this, but most
apps don't. There isn't really a concept of "done" in most apps. Better to
use SysAppLaunch with a custom launch code and have the app put up a dialog
and return when it's dismissed. The app can't access its globals while
handling the custom launch code.
--
Danny @ Palm

-- 
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