The panic code thing is here: http://wiki.forum.nokia.com/index.ph...ded_panic_code
However it does not work on S60 2nd FP3 as I know (it may be disabled on S60 2nd FP2 too).
A thing you can try is putting a TRAP around that method call, perhaps it just leaves somewhere, and that is something you can catch and log/display.
Since it is a variable declaration, you want to have it outside of the TRAP, something like this
Code:
CMsvEntry *inboxContect=NULL;
TRAPD(err, inboxContext = CMsvEntry::NewL(*iSession, KMsvGlobalInBoxIndexEntryId, sort))
if(err!=KErrNone) {do something, display it, or write to a logfile}