×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Leaves at ExecuteLD( )

    I am trying to develop a simple application with S60 UI to download a page entered in a textbox, using an open source library "http_fetcher", ported onto Symbian OS.

    In my AppUi class, I call ExecuteLD() which executes the dialog box defined in the resource file.
    Here is the relevant code,
    Code:
    HBufC* defaultText = StringLoader::LoadLC( R_HEWB_FILE_TEXT );
    Ctest2QueryDialog *dlg = new (ELeave)
       Ctest2QueryDialog( iAppView->GetText(), defaulttext );
                               
    dlg->ExecuteLD( R_DIALOG_TEXT_EDIT_QUERY );
                               
    // Getting the URL entered in the textbox into a descriptor
    
    TBuf<120> pqr = iAppView->GetText();
    When I try to debug this on the device(E61), it leaves at ExecuteLD().
    I haven't explicitly defined ExecuteLD(), but I am using the base class version.
    I checked the resource file; .rsg is created with appropriate entries.
    But, the same code runs perfectly well on the S60 emulator with no problem whatsoever.

    Anything someone can think of?? Pls advice...

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Leaves at ExecuteLD( )

    Hi,

    What do you mean by leave did you try logging and did you include rsc in the pkg have you exported rsc on the device.
    Regards,
    Sriky

  3. #3
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Leaves at ExecuteLD( )

    Quote Originally Posted by mahesh.krishna View Post
    I am trying to develop a simple application with S60 UI to download a page entered in a textbox, using an open source library "http_fetcher", ported onto Symbian OS.

    In my AppUi class, I call ExecuteLD() which executes the dialog box defined in the resource file.
    Here is the relevant code,
    Code:
    HBufC* defaultText = StringLoader::LoadLC( R_HEWB_FILE_TEXT );
    Ctest2QueryDialog *dlg = new (ELeave)
       Ctest2QueryDialog( iAppView->GetText(), defaulttext );
                               
    dlg->ExecuteLD( R_DIALOG_TEXT_EDIT_QUERY );
                               
    // Getting the URL entered in the textbox into a descriptor
    
    TBuf<120> pqr = iAppView->GetText();
    When I try to debug this on the device(E61), it leaves at ExecuteLD().
    I haven't explicitly defined ExecuteLD(), but I am using the base class version.
    I checked the resource file; .rsg is created with appropriate entries.
    But, the same code runs perfectly well on the S60 emulator with no problem whatsoever.

    Anything someone can think of?? Pls advice...
    check this link.
    http://discussion.forum.nokia.com/fo...d.php?t=123367

    You can search in SDK about Query dialog and you will get details of all types of query.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,345

    Re: Leaves at ExecuteLD( )

    Quote Originally Posted by mahesh.krishna View Post
    ...Anything someone can think of?? Pls advice...
    Perhaps you are looking for this: Extended Panic Code
    Nokia Developer Wiki Moderation team

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    2

    Re: Leaves at ExecuteLD( )

    What do you mean by leave did you try logging and did you include rsc in the pkg have you exported rsc on the device.
    The log file only logs till ExecuteLD(); Any messages later are not logged. I have included the .rsc in the pkg.
    What do you mean by exporting .rsc on the device?? Isn't it enough if I specify it in the pkg file? If not,how do I export it?

    Perhaps you are looking for this: Extended Panic Code
    Its not showing up any Application Closed dialog, so I assume its leaving and not panicking...

    Regards,
    Mahesh

  6. #6
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Leaves at ExecuteLD( )

    Hi,
    You are already exporting the rsc file into your device so no worry regarding that. You should try logging in your device to be sure that it is leaving. Also better to have ErrRd file in place (as Kiran suggested) its a good practice during development phase to have a panic catcher kind of thing while testing in device. Can you share your Dialog class may be something is missing there because of which the funciton is not getting executed properly.
    Maximus
    S60 Developer
    Impossible is nothing

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    2

    Re: Leaves at ExecuteLD( )

    Here is my dialog class...

    Code:
    #include <avkon.hrh>
    #include "GradProjQueryDialog.h"
    
    CGradProjQueryDialog::CGradProjQueryDialog( TDes& aBuf, HBufC *aDefInput )
        : CAknTextQueryDialog( aBuf )
        , iDefInput(*aDefInput)
        {
        }
    
    void  CGradProjQueryDialog::PreLayoutDynInitL()
        {
        CAknTextQueryDialog::PreLayoutDynInitL();
        //acquire pointer to editor-control & set the default input.
        CAknQueryControl* control = QueryControl();
        control->SetTextL(iDefInput);
    
        //enable OK button,so that default text can be accepted as it is
        // without modifying the text
        MakeLeftSoftkeyVisible( ETrue );
        }
    The .rss file follows,
    Code:
    //  RESOURCE IDENTIFIER
    NAME HEWB    // 4 letter ID
    #include <eikon.rh>
    #include <avkon.rh>
    #include <avkon.rsg>
    #include <appinfo.rh>
    #include "GradProj.hrh"
    #include "GradProj.rls"
    //
    RESOURCE RSS_SIGNATURE
        {
        }
    //
    RESOURCE TBUF r_default_document_name
        {
        buf="HEWB";
        }
    
    //    Define default menu and CBA key.
    RESOURCE EIK_APP_INFO
        {
        menubar = r_gradproj_menubar;
        cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
        }
    //   r_gradproj_menubar
    //   Menubar for GradProj example
    RESOURCE MENU_BAR r_gradproj_menubar
        {
        titles =
            {
            MENU_TITLE { menu_pane = r_gradproj_menu; }
            };
        }
    //   r_gradproj_menu
    //   Menu for "Options"
    RESOURCE MENU_PANE r_gradproj_menu
        {
        items =
            {
            // added the new Options menu command here   
            MENU_ITEM
                    {
                    command = EGradProjCommand3;
                    txt = STRING_r_hewb_command3;
                    },
            MENU_ITEM
                    {
                    command = EAknSoftkeyExit;
                    txt = STRING_r_hewb_exit;
                    }
            };
        }
    
    // Resources for messages.
    //
    RESOURCE TBUF32 r_hewb_command1_text { buf=STRING_r_hewb_command1_text; }
    RESOURCE TBUF128 r_hewb_file_text { buf=STRING_r_hewb_file_text; }
    RESOURCE TBUF32 r_hewb_caption_string { buf=STRING_r_hewb_caption_string; }
    
    // r_gradproj_localisable_app_info
    //
    RESOURCE LOCALISABLE_APP_INFO r_gradproj_localisable_app_info
        {
        short_caption = STRING_r_hewb_caption_string;
        caption_and_icon =
        CAPTION_AND_ICON_INFO
            {
            caption = STRING_r_hewb_caption_string;
    
            number_of_icons = 1;
    	   	icon_file = "\\resource\\apps\\GradProj_aif.mif";
    	    };
        }
    
    // r_dialog_text_edit_query
    //
    RESOURCE DIALOG r_dialog_text_edit_query
        {
        flags = EGeneralQueryFlags;
        buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
        items =
            {
            DLG_LINE
                {
                type = EAknCtQuery;
                id = EGeneralQuery;
                control = AVKON_DATA_QUERY
                    {
                    layout = EDataLayout;
                    label = "";
                    control = EDWIN
                        {
                        width = 120;
                        maxlength = 120;
                        lines = 2;
                        };
                    };
                }
            };
        }

  8. #8
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Leaves at ExecuteLD( )

    Hi,
    Since you are creating your own dialog class are you calling ConstructL of the class from which u r deriving the class. For more details check this thread post number #28
    http://discussion.forum.nokia.com/fo...d.php?t=145012
    May be this your problem's solution.
    Maximus
    S60 Developer
    Impossible is nothing

Similar Threads

  1. C++ exceptions VS Symbian Leaves :)
    By metalim in forum Symbian
    Replies: 18
    Last Post: 2009-04-15, 11:54
  2. Commiting change on CMsvEntry using ChangeL leaves
    By dejan_medic in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-08-10, 08:37
  3. Commiting change on CMsvEntry leaves
    By dejan_medic in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-08-09, 20:46
  4. Why leaves with KErrOverflow???
    By supersuperguo in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-10-16, 08:49
  5. About leaves on HTTP API.
    By kosjanne in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-15, 07:41

Posting Permissions

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