If you are doing something that takes a loooooong time, then you
should be doing something to notify the user that you haven't died,
probably every few seconds at worst. When you display this to the
user, just reset the auto-off.
If you disable the auto-off, you are taking the risk that a program
bug or some obscure path through the code will result in the auto-off
not being re-enabled, which will run down the battery amazingly quickly.
This includes if the code (or some consequence of the code) pops-up
an alert window during its processing, and the user isn't watching to
respond and clear it.
Hence my comment that resetting the auto-off is much safer than disabling it.
Roger Stringer
At 04:15 AM 5/24/2007, you wrote:
Subject: Re: Modifying/ignoring Auto-off length
From: [EMAIL PROTECTED]
Date: Wed, 23 May 2007 12:13:53 -0700 (PDT)
X-Message-Number: 8
I'm not sure how you're drawing that conclusion? Unless I'm
mistaken, AutoOffTime is set to the original value when you soft
reset as a safety protocol. So even in the event that your
application crashes everything will be fine. Other than that, I'm
not sure how SysSetAutoOffTime is unsafe.
Sincerely,
C. Gaberial Edwards
----- Original Message ----
From: Roger Stringer <[EMAIL PROTECTED]>
To: Palm Developer Forum <[email protected]>
Sent: Wednesday, May 23, 2007 10:13:21 AM
Subject: Re: Modifying/ignoring Auto-off length
At 04:15 AM 5/23/2007, you wrote:
>Subject: Re: Modifying/ignoring Auto-off length
>From: "Christian Giordano" <[EMAIL PROTECTED]>
>Date: Wed, 23 May 2007 08:38:11 +0100
>X-Message-Number: 13
>
>Thanks a lot! this looks much more elegant :)
>
>On 5/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > For the record, the best way to modify the auto-off duration is
> by using the SysSetAutoOffTime function. To turn it off while your
> program is running, do the following:
Actually frequently resetting the off time counter is much safer.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/