Hi guys, I try to NatICQ AutoExit timer for turnoff naticq near inactive, but if naticq in background phone always pick-off aftrer time in autoexit timer, please can u help me? Because I don't have where I my problem. (S)Exit address is: 0xA00792C0
Code
//----------------------------- AUTO EXIT -------------------------------//
extern const int AUTO_EXIT_AFTER_MIN;
extern const int ENABLE_BACKGROUND_EXIT;
GBSTMR offtm;
int isAutoExitEna;
int AutoExitCounter=0;
void AutoExitProc()
{
if((AutoExitCounter*15) == (AUTO_EXIT_AFTER_MIN*60))
CloseCSM(maincsm_id);
if ((isAutoExitEna) && (connect_state==3) && (IsGuiOnTop(maingui_id) || ENABLE_BACKGROUND_EXIT))
AutoExitCounter++;
GBS_StartTimerProc(&offtm, 216*15, AutoExitProc); //sending timer in 5-sec period
}
//-----------------------------------------------------------------------//
GBS_DelTimer(&offtm) a have near the others dell timers in function (
void maincsm_onclose(CSM_RAM *csm))