I'm especially worried about the RemoveEventFromQueue(): Does it
release the
event? I'm asking because originally I had a ReleaseEvent() after
REFQ(), but
that crashed. So I suppose REFQ() releases the event too if its ref
count is 0.
The refcounting is OK in this code; RemoveEventFromQueue does release
the event. However, I think there's a more fundamental problem here:
if you get an event back from ReceiveNextEvent that you don't want to
handle immediately, and therefore you leave the event in the queue,
then that event will the first event from the queue from then on, and
you'll keep getting it back from ReceiveNextEvent, so you'll never get
any other event back until you handle that event. You would need to
remove all events from the queue and, for those events you don't want
to handle immediately, place those in your own data structure to keep
track of them.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden