Problem in RTimer

Login to reply to this topic.
Wed, 2007-05-09 11:12
Joined: 2007-02-13
Forum posts: 28
Hi
      i want timer setting for exiting the application but it create execption my code given below:

TRequestStatus timerStatus;
RTimer timer;
timer.CreateLocal();
timer.After(timerStatus,2000000);
User::WaitForRequest(timerStatus);
timer.Close();
         

if(timerStatus.Int()==KErrNone)
{
               CEikonEnv::Static()->InfoWinL(_L("No Error."),_L(""));
               
      Exit();         
}
      
   }   
else   return EKeyWasNotConsumed;

msg display after 2 sec but not exit.
so any one give me suggest where is problem.
Md.kashif
  • Login to reply to this topic.