Hello,
here is some code I use to display a query dialog.
[code:1]
CAknQueryDialog* dlg;
dlg = CAknQueryDialog::NewL( CAknQueryDialog::EConfirmationTone );
CleanupStack::PushL(dlg);
dlg->SetPromptL(msgprompt);
CleanupStack::Pop();
// show dialog
TBool result = dlg->ExecuteLD( R_MINO_NEWMESSAGES );
[/code:1]
This code works fine when I dont use threads, but if i try this code in a thread i get a KERN-EXEC 3 error.
The error occurs on this line:
[code:1]
dlg = CAknQueryDialog::NewL( CAknQueryDialog::EConfirmationTone );
[/code:1]
Whats causing this error, and why does it work outside the thread.
The thread shares the heap with the parent thread. Surely it must be possible to show a query dialog from a child thread?
Thanks
Dalore
This panic will always occur if an exception is not handled within any thread. Use a trap harness to catch your exception.
dalore wrote:Hello,here is some code I use to display a query dialog.
[code:1]
CAknQueryDialog* dlg;
dlg = CAknQueryDialog::NewL( CAknQueryDialog::EConfirmationTone );
CleanupStack::PushL(dlg);
dlg->SetPromptL(msgprompt);
CleanupStack::Pop();
// show dialog
TBool result = dlg->ExecuteLD( R_MINO_NEWMESSAGES );
[/code:1]
This code works fine when I dont use threads, but if i try this code in a thread i get a KERN-EXEC 3 error.
The error occurs on this line:
[code:1]
dlg = CAknQueryDialog::NewL( CAknQueryDialog::EConfirmationTone );
[/code:1]
Whats causing this error, and why does it work outside the thread.
The thread shares the heap with the parent thread. Surely it must be possible to show a query dialog from a child thread?
Thanks
Dalore