×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    63

    CAknMessageQueryDialog not working on the Target E61

    Hi,

    I am using CAknMessageQueryDialog for displaying data which i am collecting from a socket which i have connected to a midlet .

    It is working fine on my emulator but not on my Target which is E61 . Now i have gone through this link http://discussion.forum.nokia.com/fo...ight=rcomp.exe

    and done the reqiured changes and it is working on the emulator but since i don,t have any ondevice debugging tools i am not able to find out exactly where is the bug this is my code for the CAknMessageQueryDialog


    void CLogAppView::ShowMessage(/*const TDesC& aMessage*/)
    {
    TBuf<50>aMessage;
    aMessage.Append(KShow);
    //iEikonEnv->InfoWinL(KBytes,aMessage);



    HBufC* aTitle = iEikonEnv->AllocReadResourceLC(R_COMMAND1_TEXT);
    CAknMessageQueryDialog* dlg = new (ELeave)CAknMessageQueryDialog();
    dlg->PrepareLC(R_MESSAGE_QUERY);
    dlg->SetMessageTextL(aMessage);
    dlg->QueryHeading()->SetTextL(aTitle->Des());
    dlg->RunLD();
    CleanupStack::PopAndDestroy(aTitle);

    }


    This is the resource


    RESOURCE DIALOG r_message_query
    {
    flags = EGeneralQueryFlags|EEikDialogFlagNoBorder|EEikDialogFlagNoShadow;
    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
    items =
    {
    DLG_LINE
    {
    type = EAknCtPopupHeadingPane;
    id = EAknMessageQueryHeaderId;
    itemflags = EEikDlgItemNonFocusing;
    control = AVKON_HEADING
    {
    headinglayout = R_AVKON_LIST_HEADING_PANE_POPUPS;
    };
    },
    DLG_LINE
    {
    type = EAknCtMessageQuery;
    id = EAknMessageQueryContentId;
    control = AVKON_MESSAGE_QUERY
    {
    };
    }
    };
    }


    now i am getting very frustrated because of this it is working fine on the emulator and not at all on the Target device now somebody please advice me what should i do to come out of this issue

    Thanks
    symbians60

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Posts
    115

    Re: CAknMessageQueryDialog not working on the Target E61

    What is your KShow string? Can you post the string to see if some formatting issue if the sting?

    I have noticed your heading has no label in your resource structure.

    Please take a look at my sample below. I hope it helps.

    Code:
    RESOURCE DIALOG r_multi_selection_query
        {
        flags = EGeneralQueryFlags;
        buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
        items =
            {
            DLG_LINE 
                {
                type = EAknCtPopupHeadingPane;
                id = EAknMessageQueryHeaderId;
                control = AVKON_HEADING
                    {
                    label = "Some Event";
                    headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE;
                    };
                },
            DLG_LINE
                {
                type = EAknCtMessageQuery;
                id = EAknMessageQueryContentId;
                control = AVKON_MESSAGE_QUERY
                    {
                    };
                }
            };
        }

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    17

    Re: CAknMessageQueryDialog not working on the Target E61

    I have the same problem with the CAknMessageQueryDialog. Its working on emulator but application closes on device.

    I tried label for header too but still the problem exists.

    Please let me know any information abt this.

    - Jaya

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    19

    Re: CAknMessageQueryDialog not working on the Target E61

    I am having the same issue (detailed in this thread). I have tested on the N95, N81, E65, and N75. Of those devices, my code works fine on the N95 and N81. It crashes on the E65 and N75. So my suspicion is that this is only an issue on 3rd Edition, Initial Release.

    Has anyone found a work around?

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    19

    Re: CAknMessageQueryDialog not working on the Target E61

    For future reference, this thread offered a solution that worked for me.

    (hint: try adding EPOCSTACKSIZE 0x5000 to your MMP file)
    Last edited by planigan; 2008-04-24 at 16:51. Reason: increased suggestion from 0x4000 to 0x5000 as per KIS000387

Similar Threads

  1. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  2. Replies: 0
    Last Post: 2006-10-16, 17:31
  3. Paste in CEikEdwin on E61 not working :(
    By mike.b in forum Symbian
    Replies: 2
    Last Post: 2006-09-20, 09:30
  4. Replies: 6
    Last Post: 2005-10-03, 05:51
  5. SIP sample 'Warship' working in a target device?
    By thakki in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-09-30, 13:36

Posting Permissions

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