"Chris Chayka" <[EMAIL PROTECTED]> wrote in message
news:62473@palm-dev-forum...
>
> Hi, I am having trouble with SysAppLaunch. I wish to call another
> program, execute it fully, then return to the original.
>
> UInt cardNo;
> LocalID dbID;
> UInt32 result;
>
> SysAppLaunch
> (cardNo,dbID,0,sysAppLaunchCmdNormalLaunch,0,&result);
>
> The SysAppLaunch complains about access to global variables with any
> program except for a j2me (java 2 micro edition) program that I wrote.
> When the j2me program runs and exits via System.exit(0);, it goes back
> to the application launcher rather than back into my C program like I
> wish. If I use SysUIAppSwitch, the results are the same, but I want
to get
> back into my original C program after the j2me program has finished.
> Thanks so much in advance for any help you could give me.
Applications that are sublaunched using SysAppLaunch don't have access
to global variables. That is a limitation of how sublaunches occur.
It looks like the JVM is doing behind the scenes access to setup its
environment. Its exit method is probably coded to always switch back to
the launcher rather than return to a calling application.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/