On page 949 about EvtGetEvent function in Palm OS Reference: Prototype void EvtGetEvent (EventType *event, Int32 timeout)
"Note that a timeout value greater than or equal to zero is simply the maximum number of ticks which can elapse before EvtGetEvent returns an event. If any other event�Xincluding a nilEvent�X occurs before this time has elapsed, EvtGetEvent will return that event. Otherwise, once the specified time has elapsed EvtGetEvent generates and returns a nilEvent. If you supply a value of zero for the timeout parameter, EvtGetEvent returns the event currently in the queue, or, if there aren��t any events in the queue, it immediately generates and returns a nilEvent." >From line 5: once the specified time has elapsed EvtGetEvent generates and returns a nilEvent. But in line 3: If any other event�Xincluding a nilEvent�X occurs before this time has elapsed, EvtGetEvent will return that event. Does it mean that 'nilEvent' can occur before timeout and also after timeout? Then what trigger nilEvent actually? Welcome to advice. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
