I am facing a problems regarding dialogs in Symbian OS 9. The problem is when I open any dialog in my application and then perform some kind of activity(e,g just make a new call by using phone dialer) and then came back to my application(i,e bring my app to front), now when I pressed any of the available options to close the dialog, the application is crashed. Its not backgroud to forground problem cos if I do not make any call and just navigate any other application the application is behaved well.
I am facing the same problem even in the setting list(where I am using "CAknEnumeratedTextPopupSettingItem" to selct one item from several items).
I have pasted the one of my dialogs code below.
RESOURCE DIALOG r_vopium_sms_query
flags = EGeneralQueryFlags;
buttons = r_softkey_send_cancel;//R_AVKON_SOFTKEYS_OK_CANCEL;
type = EAknCtQuery;
id = EGeneralQuery;
layout = EPhoneLayout;
label = qtn_enter_phone_number;
control = EDWIN
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable;
maxlength = 17;
width = 11;
lines = 1;
CAknTextQueryDialog* iDialog = new( ELeave ) CAknTextQueryDialog( iTelNumber, CAknQueryDialog::ENoTone );
iDialog->PrepareLC( R_VOPIUM_SMS_QUERY );
result = iDialog->RunLD();