I am using CMsvEntry and encountering some problem.
CMsvEntry * iMsvEntry = CMsvEntry::NewL(*iSession, KMsvGlobalOutBoxIndexEntryId, TMsvSelectionOrdering());
CleanupStack::PushL(iMsvEntry);
//if I put CleanupStack::PopAndDestroy(iMsvEntry); nothing wrong
iMsvEntry=iSession->GetEntryL(aId);
CleanupStack::PopAndDestroy(iMsvEntry);//But if I put the code here an
Access Violation occurs, could any please tell me why? How I can destroy
this object? I've been looking for solutions for a day. Thank you

I am using CMsvEntry and encountering some problem.
. So should I drop either of the two lines?



