I tried this but I get the same problem. It seems to be when I post an
AppStopEvent to close my app, my app closes but it stops the palm turning
off. If I dont post an AppStopEvent the palm shuts down, but my apps still
running. Very confusing, something somewhere is stopping the system shutting
down. I let the system handle the vchPowerOff after me so it should work.

Rik      

> -----Original Message-----
> From: Aaron Ardiri [SMTP:[EMAIL PROTECTED]]
> Sent: 18 September 2000 09:16
> To:   Palm Developer Forum
> Subject:      RE: Palm wont turn off when I catch
> sysNotifySleepRequestEvent
> 
> > 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.
> 
>   you should be able to catch the "power" button and the event that
>   is sent when a power off occurs. just catch it before it gets to
>   SysHandleEvent()
> 
>   have you tried catching the following "chars"?
> 
>    - vchrPowerOff
>    - autoOffChr
>    - hardPowerChr
> 
>   handle it before the OS does.. and you should be sweet :)
> 
>   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