At 11:23 PM +0100 17-04-00, Patrick wrote:
>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) .

SysNotifyBroadcast will be synchronous, even if you have multiple tasks.
The background task will block until the UI task finishes handling the
notification.

If you use SysNotifyBroadcastDeferred, this won't be the case, but then
you'll be essentially using the event loop in the UI thread to do your
message passing.

In short, the notify manager is not the right tool for inter-task
communication.

...but the point is moot, since as Jim pointed out we don't support normal
apps spawning a background task.

                                --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to