×

Discussion Board

Results 1 to 7 of 7

Thread: panic AVKON 6

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    47

    panic AVKON 6

    Somebody can tell me what is the meaning of panic AVKON 6?

    Thank you.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere
    Posts
    475

    RE: panic AVKON 6

    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

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    1

    Re: panic AVKON 6

    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

  4. #4
    Registered User
    Join Date
    Jun 2004
    Posts
    103

    Re: panic AVKON 6

    Hi guys,
    would someone say how to avoid this panic ?

    Regards,
    Siem.

  5. #5
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Re: panic AVKON 6

    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

  6. #6
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Unhappy Urgent "panic AVKON 6" help: while executing CAknListQueryDialog

    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

  7. #7
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Mumbai. India.
    Posts
    204

    Re: panic AVKON 6

    Quote Originally Posted by Denever
    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 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •