At 11:35 AM +0200 6/6/01, Helmut Giritzer wrote:
>I have a problem setting the time with TimSetSeconds.
>As soon as the program executes the TimSetSeconds function, there happens a
>bus error inside another application (POSE says Date Book 3.5).
Hook up the debugger when this happens and look at the stack. I'm sure that will
quickly tell you what's going on. What function is the other app calling when it
crashes?
My guess is that the other program is crashing due to some side-effect of
TimSetSeconds. This function changes the system clock, and this has to be adjusted
for by other apps. The OS handles this by making a call to the alarm manager to
update alarms (which I think also can cause them to go off... probably that's your
datebook 3.5 problem) and also it sends a notification (NotifyMgr broadcast) to anyone
who cares.
Perhaps there's not enough stack space left when you call TimSetSeconds, and this is
causing the other app to overflow the stack when the alarm is handled?
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/