Just catch the 'autoOffChr' event in your eventhandler.
Regards
/Michael Nyrup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hornets 'Ten Thumb Postulate' :
Experience is directly proportional with the quantity of ruined equipment.
----- Original Message -----
From: thomas <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 4:35 PM
Subject: Re: Detecting power OFF event
> I'm talking about an automatic power off.
>
> thomas a �crit :
>
> > Can someone tell me how to execute a piece of code just before the Palm
> > power off. ?
> > I have a tcp/ip connection opened in my program and i need it tostay
> > opened as long as the user don't explicitly ask to close it.
> > It seems that when the Palm gets powered off, the connection is closed.
> > I use a boolean variable to know the connection state and i would like
> > to update it to false before a power off.
> > can someone help ?
> >
> > Thomas
>
>
> --
> 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/