I want to receive a call,write this call's number to a file,then hang up it.but I find this wrong "Etel Client Faul 8",Look at these code:
iCallActive = ETrue;
iCall.OpenExistingCall(iLine, iName);
iCall.NotifyStatusChange(iStatus, iCallStatus);
// GetLatest();
////////////////////////////////
iRecentLogView->SetRecentListL(KLogNullRecentList,iStatus);
////////////////////////////////
TBuf8<20> iTelNumber;
RFile iFile;
const CLogEvent& event = iRecentLogView->Event();
iTelNumber.Copy(event.Number());
//////////////////////////////////////////////////////
TInt err=iFile.Open(iFs,_L("C:\\number.dat"😉,EFileRead|EFileWrite);
if (err==KErrNotFound) // file does not exist - create it
{
err=iFile.Create(iFs,_L("C:\\number.dat"😉,EFileRead|EFileWrite);
err=iFile.Open(iFs,_L("C:\\number.dat"😉,EFileRead|EFileWrite);
}
iFile.Write(iTelNumber);
iFile.Close();
////////////////////////////////////////////////////////
iCall.HangUp();
these codes are in a active object's RunL() function;
My program can hang up incoming call,then I found this wrong:"Etel Client Faul 8"
And I can't write number to number.dat
My program runs on Nokia6600
Please tell me reason,Thank you very much!!!!