×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    62

    program closed ERROR: E32USER Cbase 63

    hi i mtrying to add list box item dymnamically ,it compiles and builds fine but when i click on application icon on emulator
    i got the mentioned error.



    void CEmbedDemoContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();
    ///////////////////////////////////////////////////ListBox/////////////////////////////////



    iListBox = new (ELeave) CEikTextListBox;
    iListBox->ConstructL(this, CEikListBox::EPopout | CEikListBox::ELeftDownInViewRect);

    /////////////////dynamic c//////////////////////////////////////////////////////////////////

    //
    // Create a scrollbar that will be displayed automatically
    // if all the items cannot be displayed on screen
    //
    iListBox->CreateScrollBarFrameL(ETrue);
    iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff,CEikScrollBarFrame::EAuto);
    ///for dynamic creation
    CDesCArray* textArray = iCoeEnv->ReadDesCArrayResourceL( R_AKN_SCORE_LIST);
    iListBox->Model()->SetItemTextArray( textArray );
    iListBox->Model()->SetOwnershipType( ELbmOwnsItemArray );
    textArray = static_cast<CDesCArray*>( iListBox->Model()->ItemTextArray() );
    textArray->AppendL( _L("Item10") );
    iListBox->HandleItemAdditionL();


    //for dynamic creation ends here


    ///////////////////////////////////////////////ListBox/////////////////////////////////
    SetRect(aRect);
    ActivateL();
    }
    can any body help me
    thanks in advance

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    You have probably tried to Pop() some value from stack which wasn't at the top...

Posting Permissions

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