Hi
I'm developing tracking application in S60 3rd Edition for which
i need network info continously say TowerID for every 1 minute,
I've used RTimer::After(status,60000000) for 1 minute delay and CTelephony in RunL()
hers my code of RunL,Application is terminating Abruptly,Can anyonelet me know whats wrong with the code.
void CActive1::RunL()
{
if(state==1)
{
state = 2;
telephony->GetCurrentNetworkInfo(iStatus, networkInfoPckg);
SetActive();
}
if(state == 2)
{
state = 1;
aImsi.Zero();
_LIT(KCellId,"TowerId:");
aImsi.Append(KCellId);
TUint iCellId;
iCellId = iNetworkInfo.iCellId;
aImsi.AppendNum(iCellId);
_LIT(KNewLine,'n');
aImsi.Append(KNewLine);
_LIT(KAreaCode,"AreaId:");
aImsi.Append(KAreaCode);
aImsi.AppendNum(iNetworkInfo.iLocationAreaCode);
CAknInformationNote* informationNote1 = new (ELeave) CAknInformationNote;
informationNote1->ExecuteLD(aImsi);
iTimer.After(iStatus,30000000);
SetActive();
}
//SetActive();
/****/
}//RunL()
Thanks&Regards
Preethi

Reply With Quote
)). Could you be more specific, how it crash? What error is displayed? Did it run at least once? Did you have tried to debug it?


