> 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/

Reply via email to