×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    322

    load of TSY makes app crush

    Hi
    my app crashes - it causes the Device (Nokia 6600) to restart itself !!!
    it happened when I managed to find the TSY file to be used in the LoadPhoneModule() method.
    why does it crush ???
    what should I change ?

    Thanks in advance , TE

    Code:
    RTelServer iServer;
    CCommsDatabase* const db = CCommsDatabase::NewL(EDatabaseTypeUnspecified);
    CleanupStack::PushL(db); // PUSH
    TUint32 modemId = 0;
    db->GetGlobalSettingL(TPtrC(MODEM_PHONE_SERVICES_SMS), modemId); 
    CCommsDbTableView* const view = db->OpenViewMatchingUintLC(TPtrC(MODEM), TPtrC(COMMDB_ID), modemId); // PUSH
    TInt err = view->GotoFirstRecord();
    User::LeaveIfError(err);
    TFileName tsyName;
    view->ReadTextL(TPtrC(MODEM_TSY_NAME), tsyName);
    User::LeaveIfError(iServer.LoadPhoneModule(tsyName));
    CleanupStack::PopAndDestroy(2, db); // view & db

  2. #2
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    322

    correction

    The TSY load goes well !
    please take a look at the code I put after the TSY load (the code below).
    I call the GetCurrentNetwork method after a basic initiation of params (I dont know how to initiate them).
    I also checked and found that the iNetworkInfoPckg var is empty after calling the method.
    * How can I actually retrieve the relevant data ?
    For a start I want to see the current network ...
    * What should I change or add to the code?

    Thanks again , TE

    Code:
    User::LeaveIfError(iServer.EnumeratePhones(enumphone)); 
    if (enumphone < 1) 
    {
    	User::Leave(KErrNotFound); 
    }
    HBufC8 * iNetworkInfoPckg = HBufC8::NewL(50);
    RMobilePhone::TMobilePhoneLocationAreaV1 * iArea;
    RMobilePhone phone; 
    RTelServer::TPhoneInfo info; 
    User::LeaveIfError(iServer.GetPhoneInfo(0, info)); 
    User::LeaveIfError(phone.Open(iServer, info.iName)); 
    phone.GetCurrentNetwork(iReqStatus, iNetworkInfoPckg->Des(), (*iArea));  // CRUSHES HERE !!!
    User::WaitForRequest(iReqStatus); 
    phone.Close();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×