>EventType evtStop; >evtStop.eType = appStopEvent; > EvtAddEventToQueue (&evtStop);
Leaving aside discussion of why an app shouldn't have an Exit button, it's also a good idea to call MemSet(&evtStop, sizeof(EventType), 0) before setting up fields in an event record. For the specific case above, the appStopEvent doesn't rely on any other fields in the structure, but it's generally good hygiene to clear out as much as possible any structure that you're passing to the OS. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
