|
|
User login
Feeds |
Weird crash "EIKCOCTL 72" with CAknTextQueryDialog
|
|||||
| Tue, 2004-08-24 09:58 | |
|
|
Hi I have a simple text entry dialog (CAknTextQueryDialog) - defined in the rss as: Code: RESOURCE DIALOG r_enter_user_name { flags = EGeneralQueryFlags; buttons = R_AVKON_SOFTKEYS_OK_CANCEL; items = { DLG_LINE { type = EAknCtQuery; id = EGeneralQuery; control = AVKON_DATA_QUERY { layout = EDataLayout; label = qtn_label_your_name; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = 5; lines = 1; maxlength = 100; // If you want full screen use 6 here max_view_height_in_lines = 6; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }; } }; } which I call very simply like this: Code: TBuf<256> userName; CAknTextQueryDialog* dlg; dlg = CAknTextQueryDialog::NewL(userName); dlg->SetPredictiveTextInputPermitted(ETrue); if( dlg->ExecuteLD( R_ENTER_USER_NAME )) { SavePreferencesL() } All works well, but occasionally, if playing around adding in spaces etc, the application crashes with an error "EIKCOCTL 72" Looking this up in the help tells me the error is "Corrupt edwin state for inlining editing" which is as clear as mud. Anyone know what might cause this odd error or how to avoid it? Thanks Kibi -- |