×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    Braunschweig
    Posts
    46

    CAknTextQueryDialog leaves on the phone

    With S60 3rd edition and carbide.c++ I use a simple query dialog to input some user data as shown in some SDK samples. It works fine in the emulator, but it leaves on the Nokia E60 phone, the hole application exits in the moment when the Query will be executed.

    Where is the problem?

    the code:

    #include <aknquerydialog.h>

    CAknTextQueryDialog* dlg = new (ELeave) CAknTextQueryDialog(uri2,CAknQueryDialog::ENoTone);
    dlg->ExecuteLD( R_HTTP_DIALOG_URL_QUERY );

    resource:

    RESOURCE DIALOG r_http_dialog_url_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtQuery;
    id = EGeneralQuery;
    control = AVKON_DATA_QUERY
    {
    layout = EDataLayout;
    label = gtn_webclient_url_dialog;
    control = EDWIN
    {
    maxlength = KMaxUriNameLength;
    };
    };
    }
    };
    }

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    Braunschweig
    Posts
    46

    Re: CAknTextQueryDialog leaves on the phone

    I found the problem, it is the default stack size.
    Changing the EPOCSTACKSIZE to 0x8000 (MMP file) or in carbide.c++ in Properties/Post Linker/General options/Stack size in bytes to 0x8000 will make the query dialogs working on the phone.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    5

    Re: CAknTextQueryDialog leaves on the phone

    你太棒了。
    我郁闷了3天的问题,在看到你的8K的栈,就解脱了。哎。

Similar Threads

  1. Replies: 4
    Last Post: 2010-01-04, 07:49
  2. The Nokia 9210i is the shittiest nokia phone ever!
    By awyeah in forum General Development Questions
    Replies: 2
    Last Post: 2007-10-18, 10:31
  3. Anyone with a nokia 3330? Can anyone help me to copy phone memory to the sim?
    By pabmania in forum General Development Questions
    Replies: 1
    Last Post: 2006-10-29, 22:34
  4. HELP!!!- 3200 Phone Restricted
    By ajit2win in forum General Development Questions
    Replies: 4
    Last Post: 2004-12-12, 10:10
  5. How to initiate a GPRS connection to the mobile phone from a remote server?
    By VigenIssahhanjan in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2004-11-22, 08:50

Posting Permissions

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