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;
};
};
}
};
}



