Exit after note

Login to reply to this topic.
Wed, 2005-08-03 11:36
Joined: 2005-06-13
Forum posts: 25
Hi,

My intention is to display a note, and exit after that. I have used following code:

message = StringLoader::LoadLC(R_DISCONNECTED_SERVER);
CAknWarningNote* errorDialog = new (ELeave) CAknWarningNote();
errorDialog->ExecuteLD(*message);
CleanupStack::PopAndDestroy(message);
User::After(3000000);
Exit();

The program exits after 3 seconds but there is no note. What's wrong?

-Ari

Wed, 2005-08-03 12:51
Joined: 2003-05-08
Forum posts: 135
Re: Exit after note
The User::After call blocks the thread and makes displaying of the note impossibile.  What you should do is to start a timer where the callback function (or RunL() in the case of an AO) calls exit.

The box said 'Windows 98 or better'. Why is it not working on Linux?

Wed, 2005-08-03 14:09
Joined: 2005-06-13
Forum posts: 25
Re: Exit after note
Hi,

Now it works, thanx!

-Ari
  • Login to reply to this topic.