Stop looping in the event handler. Set a flag:
Done = false;
do
{
EvtGetEvent(&event, evtWaitForever);
// allow the system to handle stuff
if (SysHandleEvent(&event))
continue;
// other stuff ...
FrmDispatchEvent(&event);
}
while(Done == false && event.eType != appStopEvent);
-Nullife
"Vinay K Shukla" <[EMAIL PROTECTED]> wrote in message
news:62587@palm-dev-forum...
>
>
> ----- Original Message -----
> From: Johnathan Smith <[EMAIL PROTECTED]>
> To: Palm Developer Forum <[EMAIL PROTECTED]>
> Sent: Friday, September 07, 2001 11:01 PM
> Subject: Creating a Event to shutdown app
>
>
> > Can someone please tell me how to make a event that
> > will shutdown my app!
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant messaging with Yahoo!
> Messenger
> > http://im.yahoo.com
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> >
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/