There could be a problem with power-auto-off implementation in the
simulator. Any case, it is recommended to disable the auto-power-off
before long data processing and enable it when done. Use
gAutoOffTime = SysSetAutoOffTime(0) to disable the timer and
SysSetAutoOffTime(gAutoOffTime) to enable one. gAutoOffTime is a
variable to store the original auto off timeout. The variable may has
to be global.

SB> Hi All,
SB> My problem is following- I'm doing some data processing in
SB> the main application loop. If I my processing take more time(for
SB> example 2 minutes) in the next iteration in the loop the function
SB> EvtGetEvent() blocks my application for some undefined time- for
SB> about 1 min for example.
SB> I'm sure that exactly EvtGetEvent() blocks my application
SB> becouse when debugging the debug pointer stops on the next
SB> EvtGetEvent().

SB> If anybody has any idea please help?

SB> I'm adding here and my code:
SB> do
SB> {
SB>     EvtGetEvent(&event, 0);
SB>     serialConnection.SerialDataProcessing();
SB>     if (! SysHandleEvent(&event))
SB>     {
SB>             if (! MenuHandleEvent(0, &event, &error))
SB>             {
SB>                     if (! AppHandleEvent(&event))
SB>                     {
SB>                             FrmDispatchEvent(&event);
SB>                     }
SB>             }
SB>     }
SB> } while (event.eType != appStopEvent);




-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to