Sorry, there may be a confusion in your code. Are you sure that
EvtResetAutoOffTimer does not reset the timeout value to something
other then zero in spite of SysSetAutoOffTime(0)?
Another idea is to try nonzero event timeout in EvtGetEvent
(evtWaitForever for instance).
SB> I already do that long time ago. Any other ideas...?
SB> This is my code:
SB> static Err AppStart(void)
SB> {
SB> autoOffTimer = SysSetAutoOffTime(0);
SB> EvtResetAutoOffTimer();
SB> return errNone;
SB> }
SB> static void AppStop(void)
SB> {
SB> SysSetAutoOffTime(autoOffTimer);
SB> EvtResetAutoOffTimer();
SB> /* Close all the open forms. */
SB> FrmCloseAllForms();
SB> }
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/