Somebody can tell me what is the meaning of panic AVKON 6?
Thank you.
Somebody can tell me what is the meaning of panic AVKON 6?
Thank you.
It means EAknPanicOutOfRange, and controls in avkon.lib show this for a number of different reasons.
Which control involved when Emulator give you this panic?
For example
- CAknSingleHeadingStyleListBox::CreateItemDrawerL(), panic in that way if there is already an ItemDrawer.
- CAknSelectionListDialog panic if CAknSelectionListDialog::TFindType is EFixedFind and IsFormattedCellListBox()
- CAknSlider and CAknVolumeControl's SetValueL(TInt aValue) method panic if, aValue is not between the minimum and maximum value
...
Best Regards,
(V) - Forum Nokia Developer Support
HI,
I am doing the search option in a list box in my application. I am using CEikColumnList box.But when i am calling model->CreateFilterL( aListBox, findbox ) while creating the search field it is giving me Panic AVKON 6 and i am using CAknSearchField for the findbox.My application is a Gui Dll.Can anybody help me on this?
Thanks,
Sumanta
Hi guys,
would someone say how to avoid this panic ?
Regards,
Siem.
Hi,
I fiind panick EAknPanicOutOfRange when
I run the following code:
Symbian C++ code::
class CLMDBQuery : public CAknListQueryDialog;
CArrayFixFlat<TInt>* indexArray;
TInt CLMDBQuery::RunDlgLD(CLMForm* aLMSearchForm)
{
indexArray = new(ELeave)CArrayFixFlat<TInt>(1);
CLMDBQuery* dlg = new (ELeave) CLMDBQuery(indexArray);
dlg->iLMSearchForm = aLMSearchForm;
return dlg->ExecuteLD(R_LMDB_QUERY);
}
void CLMDBQuery::PostLayoutDynInitL()
{
CEikListBox* listbox = ListBox();
/*CAknListQueryControl* listcontrol = ListControl();
CEikFormattedCellListBox* listbox = listcontrol->Listbox();*/
CTextListBoxModel* model = (CTextListBoxModel*) listbox->Model();
TInt cntLMDatabases = iLMSearchForm->iLMAppEngine->iArrLMDatabaseInfo.Count();
CDesCArray *itemList = new (ELeave) CDesCArrayFlat(cntLMDatabases);
_LIT(KText,"1\t%S");
TBuf<30> lmFormattedName;
TPtrC lmDbName;
for(TInt index = 0; index < cntLMDatabases; ++index )
{
TLmDatabaseInfo& lmDatabaseInfo = iLMSearchForm->iLMAppEngine->iArrLMDatabaseInfo[index];
lmDbName.Set(lmDatabaseInfo.iUri);
lmFormattedName.Format(KText,&lmDbName);
itemList->AppendL(lmFormattedName);
}
model->SetItemTextArray(itemList);
model->SetOwnershipType(ELbmOwnsItemArray);//ELbmOwnsItemArray);ELbmDoesNotOwnItemArray
listbox->HandleItemAdditionL();
}
RSS definition:::
RESOURCE DIALOG r_lmdb_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSingleGraphicPopupMenuListBox;// EAknCtSinglePopupMenuListBox;//EAknCtSingleGraphicPopupMenuListBox;
listbox = LISTBOX
{
flags = EAknListBoxMultiselectionList;
height = 3;
width = 3;
//array_id = r_demo_multiselection_query_list_item;
};
heading = "Select databse:";
};
}
};
}
Thanks in advacnce
Regards
Anand Jain
Hi,
I fiind panick EAknPanicOutOfRange when
I run the following code:
Symbian C++ code::
class CLMDBQuery : public CAknListQueryDialog;
CArrayFixFlat<TInt>* indexArray;
TInt CLMDBQuery::RunDlgLD(CLMForm* aLMSearchForm)
{
indexArray = new(ELeave)CArrayFixFlat<TInt>(1);
CLMDBQuery* dlg = new (ELeave) CLMDBQuery(indexArray);
dlg->iLMSearchForm = aLMSearchForm;
return dlg->ExecuteLD(R_LMDB_QUERY);
}
void CLMDBQuery::PostLayoutDynInitL()
{
CEikListBox* listbox = ListBox();
/*CAknListQueryControl* listcontrol = ListControl();
CEikFormattedCellListBox* listbox = listcontrol->Listbox();*/
CTextListBoxModel* model = (CTextListBoxModel*) listbox->Model();
TInt cntLMDatabases = iLMSearchForm->iLMAppEngine->iArrLMDatabaseInfo.Count();
CDesCArray *itemList = new (ELeave) CDesCArrayFlat(cntLMDatabases);
_LIT(KText,"1\t%S");
TBuf<30> lmFormattedName;
TPtrC lmDbName;
for(TInt index = 0; index < cntLMDatabases; ++index )
{
TLmDatabaseInfo& lmDatabaseInfo = iLMSearchForm->iLMAppEngine->iArrLMDatabaseInfo[index];
lmDbName.Set(lmDatabaseInfo.iUri);
lmFormattedName.Format(KText,&lmDbName);
itemList->AppendL(lmFormattedName);
}
model->SetItemTextArray(itemList);
model->SetOwnershipType(ELbmOwnsItemArray);//ELbmOwnsItemArray);ELbmDoesNotOwnItemArray
listbox->HandleItemAdditionL();
}
RSS definition:::
RESOURCE DIALOG r_lmdb_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSingleGraphicPopupMenuListBox;// EAknCtSinglePopupMenuListBox;//EAknCtSingleGraphicPopupMenuListBox;
listbox = LISTBOX
{
flags = EAknListBoxMultiselectionList;
height = 3;
width = 3;
//array_id = r_demo_multiselection_query_list_item;
};
heading = "Select databse:";
};
}
};
}
Thanks in advacnce
Regards
Anand Jain
Hi Denever,Originally Posted by Denever
The thread you posted regarding AVKON 6 error is very helpfull & informative. I was just stucked since last two days. I just saw your thread today and it help me a lot. My problem was regarding volume control.
Thank you very much.
Pankaj
Mumbai.