> From: Andy Black
>
> EventType myEvent;
>
> MemSet (&myEvent, sizeof(EventType),0);
> myEvent.eType = ctlSelectEvent;
> myEvent.data.ctlSelect.controlID = MainCalcButton;
> EvtAddEventToQueue (&myEvent);
>

Don't you also have to set myEvent.data.ctlSelect.pControl ?  (I don't
actually know, I'm just wondering.)
If you are required to set it, not doing so would leave it as 0 (from the
MemSet) and then the OS would crash with a low memory access error when
trying to access the control it supposedly points to.


-- 
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