Hi,
I use the following code to deal with SMS, it could run on emulator very well, but in the real phone, it will panic -5 when LoadMessageL()...why?
please help.

Code:
CClientMtmRegistry* iMtmReg;
....
TMsvEntry entryData;
....
....
CBaseMtm * clientMtm = iMtmReg->NewMtmL(entryData.iMtm);
clientMtm->SwitchCurrentEntryL(entryData.Id());
clientMtm->LoadMessageL();
...