Originally Posted by ssn.kishore
Thanks a lot for your great job, it worked and now i can close the email client by using the following code.
I used the CPeriodic timer to execute the closing process after some delay.It works well for first two times but when there are more than two mail received then at third chance it fails.
TInt CInternetEmailEngine::PeriodicCloseAppTimerCallBack(TAny* aAny)
CInternetEmailEngine* self = static_cast<CInternetEmailEngine*>( aAny );
// Cancel the timer when the callback should not be called again.
return KErrNone; // App closes after returning from here.
After debugin the code i reliazed that the app crashes after returning from highlighted code.
Actually i am calling this close event like this :
And the method TakeScreenShot is also called using the Cperiodic Timer.
iPeriodicCloseAppTimer = CPeriodic::NewL(CActive::EPriorityIdle);
I fail to understand why the application is crashing.
Please help me.
Thanks in advance.