At 8:02 AM +0100 22-02-00, Horace Ho wrote:
> When I try to TimSetSeconds(TimGetSeconds() + 5);
>when handling sysAppLaunchCmdSyncNotify launch code,
>there will be a Fatal Error:
>
> NotifyMgr.c Line: 846
> error waking task
>
> Could anyone please tell me is TimSetSeconds() not
>allowed here? Any other guidelines?
TimSetSeconds does a NotifyBroadcast to tell the other apps that the time
has changed. It's this notification that's causing problems.
When the sysAppLaunchCmdSyncNotify launch code is sent to your app, it
actually isn't running in the foreground (UI) task. It's running in the
background task. This makes notifications harder...
NotifyBroadcast attempts to handle this by putting the background task to
sleep, waking the UI task, doing the broadcast there, and then re-waking
the background task to continue. Apparently this isn't working for you,
probably because the UI task is busy doing something else (like handling
HotSync UI.)
I don't know exactly what "error waking task" means...
So I guess the short answer is TimSetSeconds (and anything else that does a
NotifyBroadcast) isn't allowed here. Sorry.
--Bob
_______________________________________________________________________
Bob Ebert, Consulting Engineer, Palm Computing Europe SARL (still 3Com)
V: +33 4 99.52.43.54 F: +33 4 99.52.43.97 [EMAIL PROTECTED]
77 rue Samuel Morse, 34935 Montpellier, Cedex 9, France
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html