At 9:00 AM -0400 9/29/00, Stringer wrote:
>As I posted a couple of weeks ago, the only reliable way I'm aware
>of is to do so in a shared library, because the Palm OS does send
>power off and power on events to shared libraries.
Be aware that during emergency power off conditions, such as a critically low battery
or battery removal event, the shared library's sleep and wake calls will occur from
within an interrupt handler. You must therefore follow interrupt handler coding
restrictions in these routines. This severely limits their usability. You cannot, for
example, allocate or de-allocate memory, draw to the screen, post events to the main
event queue (other than the key queue using EvtEnqueueKey that is), open or close
databases, etc. This approach is not recommended unless you know *exactly* what you're
doing...
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/