×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Apr 2005
    Posts
    274

    bafl 15 : in 3rd edition fep while launching CAknTextQueryDialog dialog !!!!!!!!!!!!!

    hi friends,
    i am working on series 60- 3rd edition edition- feature pack 1. I have developed a

    third party fep.

    In that 3rd party fep , i am launching a dialog to accept data from the user, for

    launching that dialog -

    1] I am defining it in a resource in the following way:

    RESOURCE DIALOG r_velfep_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtQuery;
    id = EGeneralQuery;
    control = AVKON_DATA_QUERY
    {
    layout = EDataLayout;
    label = "Enter new word : ";
    control = EDWIN
    {
    flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    width = AKNEXQUERY_EDWIN_WIDTH;
    maxlength = AKNEXQUERY_EDWIN_MAXLENGTH;
    // added to limit expanding in forms.
    // If you want full screen use 6 here
    max_view_height_in_lines = AKNEXQUERY_EDWIN_LINES;
    // if you have the line above, you must have this.
    // It's calculable from LAF
    base_line_delta = 21;
    default_input_mode = EAknEditorAllInputModes;
    };
    };
    }
    };
    }

    2] I am using, in the C++ source code in the following way:

    CAknTextQueryDialog* dlg;

    dlg = new ( ELeave )CAknTextQueryDialog(
    textData, CAknQueryDialog::ENoTone );

    // aQueryResourceId is the is of the resource in the rsg file.
    // launch the resource dialog.
    dlg->ExecuteLD( aQueryResourceId )

    3] At runtime when this code is executed from within an fep, it is giving me bafl-15

    panic.

    I have read this panic in sdk, which indicates that this panic is caused by Interface to

    resource files (TResourceReader ), but it is being internally implemented by

    CAknTextQueryDialog.

    When i am implementing this code in a sample GUI application , it works perfectly

    fine. i.e the dialog is launched and the text is being proper edited and exited.

    Is there any known issue of launching a dialog in 3rd editon fep?????????
    forum nokia experts please Help!!!!!!!!!!!!!!!!!!!!

    Thanks,
    himanshu k
    Symbian Application Developer.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,748

    Re: bafl 15 : in 3rd edition fep while launching CAknTextQueryDialog dialog !!!!!!!!!

    Well, you can try some black magic. I have downloaded the FEP example for some reason a couple days ago, and accidentally noticed this section:
    Quote Originally Posted by FepControl.cpp
    Code:
        // The reason why we need to set up the T9/aknfep resource is that, Series 60 platform integrates the
        // T9/aknfep engine into the system, and some on-board applications expect this resource to be
        // present, if not, those applications will not work. The T9/aknfep resource is loaded when
        // the T9/aknfep FEP start up.
        //
        // As a workaround solution, we load the T9/aknfep resource in our own FEP.
    #ifdef __SERIES60_3X__
            TFileName resourceName( KAknFepResourceFileName );
            BaflUtils::NearestLanguageFile( iEikonEnv->FsSession(), resourceName );
            iResId = iEikonEnv->AddResourceFileL( resourceName );
    #else
        TFileName resourceName( KAknFepResourceFileName );
        BaflUtils::NearestLanguageFile( iEikonEnv->FsSession(), resourceName );
        if( ConeUtils::FileExists( resourceName )) // 2ndfp2 platform and newer use aknfep
            {
            iResId = iEikonEnv->AddResourceFileL( resourceName );
            }
        else
            {
            TFileName T9resourceName( KT9FepResourceFileName );
            BaflUtils::NearestLanguageFile( iEikonEnv->FsSession(), T9resourceName );
            iResId = iEikonEnv->AddResourceFileL( T9resourceName );
            }
    #endif
    You may try re-producing these steps in your own application, if the FEP does not do that.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: bafl 15 : in 3rd edition fep while launching CAknTextQueryDialog dialog !!!!!!!!!

    as always suggested try searching postings with same error http://discussion.forum.nokia.com/fo...ad.php?t=88504

  4. #4
    Regular Contributor
    Join Date
    Apr 2005
    Posts
    274

    Re: bafl 15 : in 3rd edition fep while launching CAknTextQueryDialog dialog !!!!!!!!!

    hi wizard_hu_,

    I have the initial 3 lines (required for 3rd edition) in the cosntruction of my fep.



    Thanks,
    himanshu k.

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: bafl 15 : in 3rd edition fep while launching CAknTextQueryDialog dialog !!!!!!!!!

    An occasional problem is that resource id already conflicts with an existing resource set that is loaded.
    The first 4 digits in the NAME at the top of the rss file indicate the prefix for all the resources.
    Because everyone uses different ones it could be that the resource is already present as the fep can be shared between multiple applications.

    Before loading the resource file try and see if you can read the resource already. This would indicate if a resource file with the same resource offset is already loaded.

    You could also use "R_AVKON_DIALOG_QUERY_VALUE_TEXT" and generate the dialog that way using standard AVKON resources which would mean that a resource file is not required as AVKON is implicitly loaded.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  6. #6
    Regular Contributor
    Join Date
    Apr 2005
    Posts
    274

    Re: bafl 15 : in 3rd edition fep while launching CAknTextQueryDialog dialog !!!!!!!!!

    hi paul,

    Thanks for your reply.
    I was searching it for quite a long.
    Thanks again.

    From himanshu

Similar Threads

  1. How does FEP-aware custom text edit control launch FEP dialog under 5th edtion?
    By gregory_sokoloff in forum Symbian User Interface
    Replies: 20
    Last Post: 2009-06-24, 18:13
  2. Replies: 1
    Last Post: 2008-11-21, 12:12
  3. How do I open phone app dialog in 3rd edition?
    By oobly in forum Symbian User Interface
    Replies: 17
    Last Post: 2008-10-09, 14:23
  4. S60 3rd edition signing process
    By fightersoft in forum Symbian
    Replies: 11
    Last Post: 2007-05-03, 08:18
  5. Carbide c++ and S60 3rd Edition Feature Pack 1 Working
    By jimgilmour1 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-10-18, 20:39

Posting Permissions

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