> Can I ask why you are passing SysTicksPerSecond()

Just an omission (maybe copy&paste or something like this). But his omission
caused that the problem was perceivable by the user and I started to look
for the reason.


> I believe the emulator runs as fast as it can, which means that you
> might not notice the delay, but it could still be there.

I am sure, it is not. Emulator scales also the time measurement - not
perfectly, but 1 sec delay would be noticeable.
I rather suspect the change from OS4 (emulator) to OS5 (device).


With best regards,
    Jan Slodicka



----- Original Message -----
From: "Tim Kostka" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 10:08 PM
Subject: Re: EvtEventAvail unreliable?!


> Hi Jan,
>
> Can I ask why you are passing SysTicksPerSecond() as an argument for
> EvtGetEvent?  This is telling it to wait up to 1 second for an event to
> return.  If you want zero delay, you can pass zero for this argument in
> which case the function will return immediately with either the next event
> in the queue or nilEvent if there are none.
>
> Also, the speed of the emulator isn't the same as the speed of an actual
> device.  I believe the emulator runs as fast as it can, which means that
you
> might not notice the delay, but it could still be there.
>
> This is from the help file:
> "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--including a nilEvent--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."
>
> --
> Tim Kostka
> http://www.nuprograms.com
>


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

Reply via email to