At 4:28 PM +0100 11/05/99, Miller, Gary wrote:
>i want to queue an event to happen several times in a row.  i've
>successfully used EvtAddEventToQueue( EventPtr) to append events to the
>Event Queue, but only the first of the events occurs.  my loop iterates
>correctly, and a different pointer value is assigned to each event enqueued.
>is there some formality i'm missing?  do i need to set values for penDown,
>screenX, or screenY? it would be nice to be able to examine the event queue
>at run-time.

This should work fine.  Note however that the event queue is very small, I
think it's around 10 entries.  So if n is greater than 10, you're going to
break something.

So your events are probably getting enqueued just fine... perhaps the
problem is on the dequeueing end?  The event queue is cleared in some
circumstances, e.g. when switching apps.  Or maybe you (or someone else)
has an event loop that's eating the extra events?

The best thing to do would be to hook up the PalmDebugger and set a
breakpoint (atb) at EvtGetEvent and see what's coming off the queue.  Or
run in the Macintosh simulator and open the event trace window.  Or run in
a 3.0 or later Poser and turn on event reporting...

                                        --Bob


Reply via email to