CAknSelectionListDialog
| Wed, 2005-05-18 11:38 | |
|
Hi, I'm doing an exact copy from Series60 SDK help of CAknSelectionListDialog and it just gives me User 0 panic on emulator and KERN-EXEC 3 on device. What the heck?
I'll bring the code here but I remind you - it is almost (sic!) exact replica of the one brought in help: resource: RESOURCE DIALOG r_searching_dialog { flags = EAknDialogSelectionList; buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; items = { DLG_LINE { type = EAknCtSingleListBox; id = ESearchingDialogListBox; control = LISTBOX { flags = EAknListBoxSelectionList; }; } }; } RESOURCE MENU_BAR r_searching_dialog_menubar { titles = { MENU_TITLE { menu_pane = R_AVKON_MENUPANE_SELECTION_LIST; } }; } usage: TInt openedItem = 0; CDesCArray *arr = new CDesCArrayFlat(5); /* no items -> should dislpay "no data" listbox */ CAknSelectionListDialog *dlg = CAknSelectionListDialog::NewL( openedItem, arr, R_SEARCHING_DIALOG_MENUBAR ); dlg->ExecuteLD( R_SEARCHING_DIALOG ); and the last line panics. I've spent 2hrs on this already and have still no idea what's wrong regards, Ahti. |
|






Forum posts: 173
CleanupStack::PushL(array);
-
-
-
-
CleanupStack::PopAndDestroy(array);
http://sandy.t35.com
Forum posts: 47
Forum posts: 10