Try a different approach!
Use a shared library. This is the sure way of trapping a power off
and power on events as there are specific events sent to you for this
precise purpose. (Its kind of strange to have a pair of events
sent to shared libraries that are not sent to normal programs)
Roger Stringer
Marietta Systems, Inc.
>Subject: RE: Palm wont turn off when I catch sysNotifySleepRequestEvent
>From: Richard Anderson <[EMAIL PROTECTED]>
>Date: Mon, 18 Sep 2000 10:55:23 +0100
>I pass all my events to the system, I have tried commenting all the code out
>in AppStop. Therefore the problem lies somewhere between posting an
>AppStopEvent and exiting the event loop. Therefore something in the system
>is eating the shutdown or doing something to it and stopping the Palm
>closing down. Odd
>Rik
>> -----Original Message-----
>> From: Aaron Ardiri [SMTP:[EMAIL PROTECTED]]
>> Sent: 18 September 2000 10:36
>> To: Palm Developer Forum
>> Subject: RE: Palm wont turn off when I catch
><> sysNotifySleepRequestEvent
>>
>> > I agree that I might not get an AppStopEvent before the system shuts
>> down.
>> > But what is stopping the system shutting down in the first place ??? I
>> can
>> > sort the any problem with event ordering, but I cant understand why the
>> > system wont shut down.
>>
>> are you passing the events you trap onto the system? :) try *always*
>> passing them on.. your device will probably shut down :P
>>
>> // az
>> [EMAIL PROTECTED]
>> http://www.ardiri.com/ <--- free games!
Roger Stringer
Marietta Systems, Inc., PO Box 71506, Marietta, Georgia 30007
Phone: (770) 565-1560 FAX: (770) 565-4421
"RF-TP" and "Marietta PDE" are the trademarks of Marietta Systems, Inc.
Visit our web site for company and product information:
http://www.MariettaSystems.com
==================================
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/