Hi,
On page 210 of the Palm OS Programmer's Companion (v3.5 of 1/7/00) it
says "Only system software can launch a separate task. The multi-tasking
API is not available to developer applications." What then is the
sysAppLaunchFlagNewThread launch flag on the SysAppLaunch API used
for? On page 58 of the same guide it says "SysAppLaunch has numerous
options, including whether to launch the application as a separate task"
and I was assuming that this is what the sysAppLaunchFlagNewThread flag
was.
What I would like to do is to have one application, launch another
programatically to run in the background as a separate task (using
SysAppLaunch), and then send messages from the first to the second (using
SysNotifyBroadcast) in an asynchronous way (so the second app is not called
as a subroutine of the first) .
I thought that below would work (from the first application):
err = SysAppLaunch(secondAppCardNo, secondAppDbID,
sysAppLaunchFlagNewThread | sysAppLaunchFlagNewStack |
sysAppLaunchFlagNewGlobals,
sysAppLaunchCmdNormalLaunch, NULL, &rc);
...
EvtGetEvent (&event, evtWaitForever);
but the second application never gets the sysAppLaunchCmdNormalLaunch
command.
Thanks for any help!!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html