Thanks Jim... great point..

-----Original Message-----
From: Jim Schram [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 06, 2000 12:48 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Ending an application


At 8:30 AM -0500 2000/01/06, Ralph Krausse wrote:
>Thanks for all the help. I ended up adding a stop event to the queue...
>
>       EventType event;

Always remember to clear the other fields of the event record before
enqueueing the event, e.g.:

        MemSet (&event, sizeof(EventType), 0);

>       event.eType = appStopEvent;
>       EvtAddEventToQueue(&event);

This aids in future OS compatibility and should be done for all posted
events regardless of their type.

Regards,

Jim Schram
3Com/Palm Computing
Partner Engineering

Reply via email to