That's not true. Test on nilEvent will prevent that. Jan Slodicka
----- Original Message ----- From: "Regis St-Gelais" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, April 08, 2004 3:37 PM Subject: Re: EvtEventAvail unreliable?! > > > "Jan Slodicka" <[EMAIL PROTECTED]> a �crit dans le message de > news:[EMAIL PROTECTED] > > <snip> > > Perhaps this should be replaced by > > > > while( true ) > > { > > EvtGetEvent(&event, 0); > > if( event.eType == nilEvent ) > > break ; > > // do something... > > } > > > > Seems to be smaller and safer code. (By "safer" I mean that it does not > > introduce unnecessary delays in the situations when they are to be > avoided.) > > > <snip> > > This loop will reduce the battery life as the device will never go to sleep > between events. > > -- > Regis St-Gelais > www.laubrass.com > -- > > > > -- > 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/
