Joe Programmer wrote:

>I seem to recall that the OS does some bookkeeping at
>midnight -- I wonder if you are interfering with that
>by refusing to let your app stop.

I remember that thread, but I don't think that the housekeeping requires my 
app to stop since the palm doesn't actually switch apps at midnight.

But the housekeeping is one of the things I thought of as a possible cause.

Doug McFadyen wrote:

>If I recall correctly, for a Palm device to auto-off, it sends two
>keyDownEvent messages, the first has event.data.keyDown.chr set to
>vchrAutoOff, and the second has event.data.keyDown.chr set to vchrPowerOff.
>If these events do not make it to SysHandleEvent(), then the device will 
>NOT power down.

The archives mentioned this too, but my app is not handling any key events 
so this is not happening (note that the problem is only reported by 2 users 
out of >3000 downloads, it works fine for many people)

>Also, if somehow the low memory byte, globals.sysAutoOffSeconds, got set 
>to zero, then your device will not auto-off.  Doing a shortcut dot dot 3 
>typically sets globals.sysAutoOffSeconds to zero.

Although I don't think this is happening, I can check for this to make 
sure. I saw something about CRC-ing the globals to see if an apps writes in 
there by mistake. Note that I don't get any warnings about this in POSE, 
and I have tested a lot with different ROMs.


      Gert-Jan

-----
"It is not worth an intelligent man's time to be in the
  majority. By definition, there are already enough people to
  do that."
     - G. H. Hardy


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