Can someone explain what "Server Busy" dialog is?

K

Ken Varn

Sometimes when I try to close my managed C++ application, the following
dialog displays in Win 2000 Pro:

The title of the dialog is "Server Busy".
The message is "This action cannot be completed because the other program is
busy. Choose 'Switch to' to activate the busy program and correct the
problem."

I don't know why this is displayed. I would prefer to disable the display
of this message if possible. My app needs to be able to close in an
unattended environment, so I need to prevent any messages requiring user
interaction.

Can anyone help me on this?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
(e-mail address removed)
-----------------------------------
 
J

John Timney \(Microsoft MVP\)

I wouldn't think so.............if this is the cause its usually causede by
a flaw in the client apps logic

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

Ken Varn said:
Is there anyway to set a registry setting so that the "Switch to" selection
is made automatically?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
(e-mail address removed)
-----------------------------------
 
K

Ken Varn

Is there anyway to set a registry setting so that the "Switch to" selection
is made automatically?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
(e-mail address removed)
-----------------------------------
John Timney (Microsoft MVP) said:
I have no idea what your app does nor how to fix it for you, but this used
to (and likely still does) come about in windows when a client was talking
to an automation server (like excel from a VB client) and the server lost
focus. It would complain because it was expecting to do something and did
not have the focus any longer as control had switched back to the calling
application prematurely.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

Ken Varn said:
Sometimes when I try to close my managed C++ application, the following
dialog displays in Win 2000 Pro:

The title of the dialog is "Server Busy".
The message is "This action cannot be completed because the other
program
 
S

Stefano \WildHeart\ Lanzavecchia

John Timney (Microsoft MVP) said:
I wouldn't think so.............if this is the cause its usually causede by
a flaw in the client apps logic

Or both. A simple example: if WinWord used as an OLE server decides to
display a modal form (like to ask for confirmation about merging the
normal.dot style or something like that), no OLE client will be able to
proceed until the modal form is humanly dealt with.
This could be called a mistake in the installation of WinWord, but it can be
a problem quite hard to deal with...
 
K

Ken Varn

Thanks for the info. This really helps.

One more question. This problem seems to occur when my application is
trying to close. If I disable these dialogs, will it just hang when trying
to close or will it actually close?


--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
(e-mail address removed)
-----------------------------------
Leana said:
Search MSDN for ID: Q248019 which could help you.

You should be able to stop these message boxes with

AfxOleGetMessageFilter()->EnableNotRespondingDialog(FALSE);

AfxOleGetMessageFilter()->EnableBusyDialog(FALSE);

or you could increase the delay period using

AfxOleGetMessageFilter()->SetMessagePendingDelay(nDelay);

Ken Varn said:
Sometimes when I try to close my managed C++ application, the following
dialog displays in Win 2000 Pro:

The title of the dialog is "Server Busy".
The message is "This action cannot be completed because the other
program
 
L

Leana

Your client app may hang since it is waitng for a response from the server.
There could be some flaw in the server's logic which will cause the client
to hang. Or some operation is taking longer than expected in which case the
client will eventually close.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top