On 3/16/07, Khertan <[EMAIL PROTECTED]> wrote:
In one of my programm i've two consecutive call to EvtAddEventToQueue.
The first event is pulled in the queue ... But there are no trace of the
second event.
It's two different user event. The code is pascal (but it s very similar to c)
MemSet(Evt,sizeof(evt),0);
evt.etype:=UserEvent1;
event.user1.id:=theid;
EvtAddEventToQueue(@evt);
MemSet(Evt,sizeof(evt),0);
evt.etype:=UserEvent2;
event.user2.id:=theid;
EvtAddEventToQueue(@evt);
have you considered:
MemSet(@Evt,sizeof(evt),0);
like it should be? that is, MemSet does expect a pointer to the event,
much like EvtAddEventToQueue does?
I don't understand why this second event isn't in the queue. Any idea ?
if you are concerned about EvtAddEventToQueue() only storing a
pointer reference to your event - you would only see the second
event; not the first. and, if your over paranoid - why not use two
seperate event structures? :) (Evt1, Evt2) and see what happens?
is the above code real? or, have you substituted it with code which
we may understand better? if so, post the real code. your results
dont match the code regardless how you see it.
--
// Aaron Ardiri
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/