If you set 0 as the time out parameter (which happens to be wait forever),
EvtGetEvent will not return a nilEven unless the UI has generated it.
NilEvents are not generated while the pen is on the screen.  What you may
want to do (since you need to trigger on events often)  is to look at all
events, not just nilEvents.  That way, you may get a few extra ticks while
the pen is in use.


----- Original Message -----
From: "Daniel Morais" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 8:19 PM
Subject: EvtGetEvent is taking too much time !


> Hi !
>
> I'm writing an application which make animations and call EvtGetEvent very
> often, as the parameter given to this function is between 0 to 2 ticks.
>
> The problem is that sometimes, not very often ( about 1 time every 2 or 3
> hours ), this function return only after 3 to 5 seconds ( yes,
seconds... )
> while I asked it to wait no more than 1 or 2 ticks !
>
> The event EvtGetEvent return after so much time is a nilEvent.
>
> It seems to be related to the stylus, which my application use a lot :
there
> is a lot of pen up, pen down and pen move events.
>
> At each of these events, to be sure the problem is not related to the pen
> queue beeing full, I call EvtFlushPenQueue(), but it doesn't change
anything.
>
> The problem appear on a PalmIIIc with PalmOS 3.5
>
> Do someone have any idea ?
>
> What can EvtGetEvent be doing during so much time and how can I avoid it ?
>
> Thanks.
>
> --
> Daniel Morais
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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

Reply via email to