At 6:45 PM +0100 23-03-00, Holger Klawitter wrote:
>I am trying to set the time from the PC side (under UNIX), but
>I have problems calling TimSetSeconds:
The problem is that the sync notify sys launch is actually sent to your app
from a background thread, so your code is effectively running in the
background.
TimSetSeconds does a Notify, which will do funny things when run from the
background thread. (It sleeps the background process, wakes the UI
process, waits for the notification to go out, then sleeps the UI thread
and re-wakes the background thread.) For whatever reason, this doesn't
work when HotSync is running.
So, the side-effect of all that is you can't call TimSetSeconds from within
your sysAppLaunchCmdSyncNotify handler. I'm not sure why you'd want to do
that anyway...
Maybe you can set an alarm or make a deferred notification to yourself, so
that you get called back later from within the UI thread and then you can
call TimSetSeconds.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html