Hi Paul
Yes i need to keep the session open until the job is finished.
So i changed it to this
Code:
RSyncMLSession iSyncMLSession;
iSyncMLSession.OpenL();
iSyncMLSession.RequestProgressL(*this);
RSyncMLDataSyncJob iJob;
iJob.CreateL( iSyncMLSession,aActiveProfile);
iJob.Close();
if(iWaitDialog)
{
iWaitDialog->ProcessFinishedL();
iWaitDialog = NULL;
}
iWaitDialog = new (ELeave) CAknWaitDialog(
(REINTERPRET_CAST(CEikDialog**, &iWaitDialog)),
ETrue);
iWaitDialog->PrepareLC(R_FILELIST_WAIT_NOTE);
iWaitDialog->SetTextL(KNullDesC);
iWaitDialog->RunLD();
The app panicked with KERN-EXEC 0. Then i cleared all the MSyncMLProgressObserver but it still panicked with KERN-EXEC 0, unless i commented "iSyncMLSession.RequestProgressL(*this);"
Code:
void CSyncHandler::OnSyncMLSyncError (TErrorLevel aErrorLevel, TInt aError, TInt aTaskId, TInt aInfo1, TInt aInfo2)
{
}
void CSyncHandler::OnSyncMLSyncProgress (TStatus aStatus, TInt aInfo1, TInt aInfo2)
{
}
void CSyncHandler::OnSyncMLDataSyncModifications (TInt aTaskId, const TSyncMLDataSyncModifications &aClientModifications, const TSyncMLDataSyncModifications &aServerModifications)
{
}
What could be wrong here?