Ahem.

Did you copy the code in your mail literally from your .c file?

If you did: Try changing

eventWait=SysTicksPerSecond*8;

into

eventWait=SysTicksPerSecond()*8;

Right now the value of eventWait becomes

<address of SysTicksPerSecond function> * 8.

Good luck,

Caspar



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Lange-Hegermann
Sent: Tuesday, May 04, 2004 11:51 AM
To: Palm Developer Forum
Subject: SysTicksPerSecond in main event loop

Hi!

I have the following siple event loop:


UInt32 eventWait;

eventWait=SysTicksPerSecond*8;

do {
                 UInt16 MenuError;
                 EvtGetEvent(&event, eventWait);

                 if (! SysHandleEvent(&event))
                   if (! MenuHandleEvent(0, &event, &MenuError))
                     if (! AppHandleEvent(&event))
                                                FrmDispatchEvent(&event);

             } while (event.eType != appStopEvent);


Only my old IIIxe waits 8 seconds, my Cli� TJ-37 fires a nilEvent 
almost exactly every one second. Where does that event come from? Any 
Ideas?


Stefan

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to