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.
//
// 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