Getting User-130 in ListBox Construction in the third level view....

Login to reply to this topic.
Thu, 2008-04-10 07:50
Joined: 2007-09-27
Forum posts: 6

Hello All,
I am getting panic in LB creation....I am switching from base view to second (A listbox view) and from second to third view
whr m getting panic,,,,I am using an array which will provide the text for ListBox...but when i am coming out of the for loop ...
the array is missing from the debug parameter.....and at model.ModelEndUpdateL(); i am getting user 130....

Plz help me ...
Code is posted bolw....

CQikListBox* SongPlayListlistBox;

void CPlayListBoxListView::ViewConstructL()
{
ViewConstructFromResourceL(R_LISTBOX_PLAYLISTVIEW_UI_CONFIGURATIONS);
CreatePlayListItemsL();
}

/void CPlayListBoxListView::CreatePlayListItemsL()
{
RArray GetPlayListArrContent=iUtility->HandleListBoxEventInUtility(Default);
PlayListlistBox = LocateControlByUniqueHandle(EListBoxListViewListCtrl);
PlayListlistBox->SetListBoxObserver(this);
MQikListBoxModel& model(PlayListlistBox->Model());
model.ModelBeginUpdateLC();

for(ItemPos = 0; ItemPos {
MQikListBoxData* listBoxData = model.NewDataL(MQikListBoxModel::EDataNormal);
CleanupClosePushL(*listBoxData);

TBuf16 itemName16(KNullDesC);
itemName16=GetPlayListArrContent[ItemPos].InfoName;
listBoxData->AddTextL(itemName16, EQikListBoxSlotText1);
CleanupStack::PopAndDestroy(listBoxData);
}
GetPlayListArrContent.Close();
model.ModelEndUpdateL();
}


Thu, 2008-04-10 08:00
Joined: 2007-09-27
Forum posts: 6
Re: Getting User-130 in ListBox

I checked code with single item alse i.e. with out any array....still the same problemm.........

Thu, 2008-04-10 09:26
Joined: 2007-09-27
Forum posts: 6
Re: Getting User-130 in ListBox

I am waiting for ur help.................

Thu, 2008-04-10 12:52
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: Getting User-130 in ListBox Construction in the third

Quoting from SDK document :

This panic is raised when an index value passed to a member function of a RArray or a RPointerArray identifying an array element, is out of bounds.

Guess you can try to fix it Eye-wink

Thu, 2008-04-10 13:45
Joined: 2007-09-27
Forum posts: 6
Re: Getting User-130 in ListBox

Ya i know that..but i am not able to find the mistake which i have done.....as when i am testing it without RArray it still giving panic..................at the same position...........

  • Login to reply to this topic.