Getting User-130 in ListBox Construction in the third level view....
| Fri, 2008-04-11 10:16 | |
|
Hello All, Plz help me ... CQikListBox* SongPlayListlistBox; void CPlayListBoxListView::ViewConstructL() /void CPlayListBoxListView::CreatePlayListItemsL() for(ItemPos = 0; ItemPos { TBuf16 itemName16(KNullDesC); FYI: i am not able to find the mistake which i have done.....as when i am testing it without RArray (taking only single buffer in LB) it still giving panic..................at the same position........... |
|






Forum posts: 586
A bit frustrating to comment on a code which shouldn't even compile:
RArray GetPlayListArrContent=iUtility->HandleListBoxEventInUtility(Default);And:
for(ItemPos = 0; ItemPos {...
But: you are in the loop creating listboxdata elements and then destroying them in each round. Is this really what you want to do?
Forum posts: 1058
Yes, strange as it may seem, that's really what prajna wants to do, because that's how UIQ3 listbox models work. Search for "MQikListBoxData" e.g. on this page:
http://books.uiq.com/index.php/List_boxes
It's not the only place of somewhat strange and confusing ownership semantics in UIQ3's classes. As if avoiding memory leaks and memory management in C++ in general were not yet hard enough...
I checked the code and saw nothing obviously wrong.
René Brunner
Forum posts: 6
Guys no syntax error or something like this......
m correcting myself which i did wrong at the time of copy paste
for(ItemPos = 0; ItemPos ;ItemPos ++)
{
}
and RArray GetPlayListArrContent=iUtility->HandleListBoxEventInUtility(buf); is something that provide the content for my listbox....and its nt even compiling but running too in all views....but in this view only m getting panic....
Forum posts: 18
I think it may be the problem because ......here implementation of next view is done thrw the view which already contains the listbox and in the next view also u are creating the listbox and which may cause the problem
correct me if m worng