×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Problem during selecting contact from Log

    Hi All,

    I have created a VOIP application in which i have to select recent dialed calls or received call from log. When i select the any number, number get selected and appeares to application home screen.
    But after this application got crashed.
    Here is the code please suggest me if i am doing any thing wrong.

    Thanks.

    =========================================================================================================
    TBool CMobileDialerCallHistoryView::HandleControlPaneLeftSoftKeyPressedL( TInt aCommand )
    {

    CAknSingleStyleListBox* iListBox = new(ELeave) CAknSingleStyleListBox;
    iListBox = (CAknSingleStyleListBox*)iMobileDialerCallHistory->ComponentControl(0);
    TInt Count = iListBox->Model()->ItemTextArray()->MdcaCount();

    if(iListBox->Model()->NumberOfItems()==0)
    {
    CAknInformationNote* note = new ( ELeave ) CAknInformationNote();
    HBufC* noteText ;

    TBufC<50> note1(_L("No Item Found"));
    noteText = note1.AllocL();
    note->ExecuteLD( *noteText );
    }
    else
    {
    CTextListBoxModel* model = iListBox->Model();
    CDesCArray* desArray = STATIC_CAST(CDesCArray*, model->ItemTextArray());
    CleanupStack::PushL(desArray);
    TInt index = iListBox->CurrentItemIndex();
    TInt desArraySize = desArray->MdcaCount() -1;
    for(TInt i=0 ;i<=desArraySize ;i++)
    {
    if(index == i)
    {
    HBufC* item = HBufC::NewLC(30);
    item = (HBufC*)(*desArray)[i].AllocLC();
    const TUid KCustomMessageUid= {2};
    TBuf<100> name ;
    _LIT ( KStringHeader, "%S" );
    name.Format(KStringHeader , item);
    name.Trim();
    HBufC8* items = CnvUtfConverter::ConvertFromUnicodeToUtf8L(name);
    AppUi()->ActivateLocalViewL(TUid::Uid(EMobileDialerContainerViewId),
    KCustomMessageUid ,*items );
    }
    }
    CleanupStack::Pop();
    }
    return EFalse;
    }
    =========================================================================================================

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,021

    Re: Problem during selecting contact from Log

    Number of items popping out of the CleanUpStack in the else part of the code is less then the number of items pushed onto it(CleanupStack::PushL(desArray),HBufC* item = HBufC::NewLC(30), item = (HBufC*)(*desArray)[i].AllocLC() -> 3 items pushed, popped only 1)

    Anyways you first need to mention about the crash message you get.

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: Problem during selecting contact from Log

    I can not see the error message, because using Carbide and don't know how to debug.

    Could you tell me any other way..

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,021

    Re: Problem during selecting contact from Log

    You must be trying the app in device i suppose, so you can see the crash messages using : http://www.developer.nokia.com/Commu...ded_panic_code

    Simple install the sis file(ErrRd.sis) as given in above link.

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: Problem during selecting contact from Log

    I am getting the error

    App Closed
    Softphone:
    KERN-EXEC 3

    Please suggest me, what i can do in this case.

  6. #6
    Registered User
    Join Date
    Jul 2012
    Posts
    44

    Re: Problem during selecting contact from Log

    Every time carbide is giving error in these lines "internal error occured" in this-> (EMobileDialerContainerViewId)

    AppUi()->ActivateLocalViewL(TUid::Uid(EMobileDialerContainerViewId),KCustomMessageUid ,*items );

    please suggest me. How can i solve it.

Similar Threads

  1. Replies: 3
    Last Post: 2010-07-27, 10:14
  2. Replies: 3
    Last Post: 2008-11-11, 10:18
  3. Problem selecting SDK/ Carbide
    By dimension11 in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2007-11-19, 22:50
  4. Replies: 2
    Last Post: 2007-07-07, 16:02
  5. problem with delete of contact by using contact PIM api
    By mail_rahman in forum Mobile Java General
    Replies: 4
    Last Post: 2007-06-28, 20:14

Posting Permissions

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