I have seen this effect when using NetLibSelect with sysFileDesStdin. It
acts as if EvtGetEvent sometimes does some type of internal processing on
events in the queue and discards some. Thus there may be events in the que
when EvtEventAvail is called, but EvtGetEvent discards them all internally
and has nothing to return. My solution was to call EvtGetEvent with a
timeout value of 0 in this case so that it would return a nilEvent if it
discarded all entries on the queue.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul Nevai
Sent: Friday, April 05, 2002 6:28
To: Palm Developer Forum
Cc: Paul Nevai
Subject: an EvtGetEvent() question...

Setup: Pose 3.4 and ROM 4.0

I always thought that if "EvtEventAvail ()" is true then "EvtGetEvent
(&event, timeOut)" should always work and should not wait for an event. As
it
turns out, this is not the case. "EvtEventAvail ()" could be true and
"EvtGetEvent (&event, timeOut)" can still wait and wait and wait.  What am I
missing?  /Paul N.

--
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