-
Overlapping dialogs
Hello!
There is the following situation:
an application may receive event at any time and has to show a dialog. If at the moment there is an open dialog (dialog 1) the new one (dialog 2) is shown over it. When closing the first dialog (dialog 1) with OK button (or apply or any other positive) all is OK, but when with Cancel there is CBase-71 panic.
What may be wrong here? Maybe something with CBA?
Thank you!
-
Re: Overlapping dialogs
Forgot to say:
dialog 2 is of type CAknGlobalMsgQuery.
-
Re: Overlapping dialogs
Consider reading the documentation of that panic first (it has a slightly different name in fact). On-line version: [url]http://library.developer.nokia.com/[/url]
-
Re: Overlapping dialogs
I use this example to show global query:
[url]http://www.developer.nokia.com/Community/Wiki/Showing_a_global_confirmation_query_using_CAknGlobalConfirmationQuery[/url]
-
Re: Overlapping dialogs
The situation is twofold:
- there is some known issue with dialogs and task switching. Dialogs may encounter problems when they are open and the application comes back from the background. The clue here is that global queries are running in a different process (in the notification framework/server), thus displaying it "in" your code actually results in swapping your application to background for a short time
- the other side of the situation is the panic what you are getting, which may have pretty explicit causes, described in its documentation