Not a very useful answer. I have a very good reason for closing the App on
the power button. I am not using the Palm in the ussual way, I am using it
as a Commercial instrement display attached to some speacial hardware and I
need the application to shutdown. This may change in the near future so that
the App does not shutdown but goes back to its startup screen, but I will
still need to ensure that I am actually at the startup screen before the
Palm turns off, as this is the only place the serial port is not opened.
This is important as if the serial port is open when the Palm turns back on,
the D0 (palm V) pin goes active which affects my hardware. If we then goto
the startup screen, D0 goes off, but this gives an unacceptable glitch on
the pin.

Rik

> -----Original Message-----
> From: Aaron Ardiri [SMTP:[EMAIL PROTECTED]]
> Sent: 18 September 2000 08:51
> To:   Palm Developer Forum
> Subject:      Re: Palm wont turn off when I catch
> sysNotifySleepRequestEvent
> 
> > I am actually trying to close my app on the power off button and finnish
> > running all my tidy up code before the thing actually turns off. This is
> > important that my code fully ends before power off.
> 
>   why?
> 
>   there is no reason for this. the Palm is not a PC. you dont shut
>   the machine down when you press the "power" button. it just turns
>   off the display and runs in a very low powered mode.
> 
>   your "device" is never off technically.. need to power that RAM!
> 
>   when the person *leaves* your app, then.. you should do all the 
>   cleaning up you need.. just pressing [off] does not make the app
>   close down..  pressing [on] will return it to exactly where it was
>   before you pressed the [off].
> 
>   cheers
> 
> // az
> [EMAIL PROTECTED]
> http://www.ardiri.com/    <--- free games!
> 
> 
> -- 
> 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/

Reply via email to