473,386 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can someone explain what "Server Busy" dialog is?

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.
va***@diebold.com
-----------------------------------
Jul 19 '05 #1
6 16883
Is there anyway to set a registry setting so that the "Switch to" selection
is made automatically?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.com
-----------------------------------
"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
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" <va***@diebold.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
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.
va***@diebold.com
-----------------------------------


Jul 19 '05 #2
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" <va***@diebold.com> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
Is there anyway to set a registry setting so that the "Switch to" selection is made automatically?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.com
-----------------------------------
"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
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" <va***@diebold.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
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.
va***@diebold.com
-----------------------------------



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


From my experience this is mostly a flow in the server app...

The message will come up, if the client calls an sever and the server does
not respond.

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
Jul 19 '05 #4

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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...
--
WildHeart'2k3
Jul 19 '05 #5
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.

"Ken Varn" <va***@diebold.com> wrote in message
news:O4**************@TK2MSFTNGP12.phx.gbl...
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.
va***@diebold.com


Jul 19 '05 #6
Hello Ken,

By using the method in the KB artilce, the application won't hang since you have set the timeout value. When the timeout
value expires, the call will return.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Reply-To: "Ken Varn" <va***@diebold.com>
!From: "Ken Varn" <va***@diebold.com>
!References: <uS**************@TK2MSFTNGP09.phx.gbl> <eQ**************@TK2MSFTNGP09.phx.gbl>
!Subject: Re: Can someone explain what "Server Busy" dialog is?
!Date: Thu, 31 Jul 2003 08:42:38 -0400
!Lines: 61
!Organization: Diebold Inc.
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <O4**************@TK2MSFTNGP12.phx.gbl>
!Newsgroups:
microsoft.public.dotnet.framework.clr,microsoft.pu blic.dotnet.framework.sdk,microsoft.public.dotnet. general,microsoft.public.
dotnet.languages.vc
!NNTP-Posting-Host: 204.151.249.23
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!
TK2MSFTNGP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.sdk:7072 microsoft.public.dotnet.general:102991
microsoft.public.dotnet.languages.vc:26718 microsoft.public.dotnet.framework.clr:7520
!X-Tomcat-NG: microsoft.public.dotnet.general
!
!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.
!va***@diebold.com
!-----------------------------------
!"Leana" <je******@cadsindia.com> wrote in message
!news:eQ**************@TK2MSFTNGP09.phx.gbl...
!> 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" <va***@diebold.com> wrote in message
!> news:uS**************@TK2MSFTNGP09.phx.gbl...
!> > 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.
!> > va***@diebold.com
!> > -----------------------------------
!> >
!> >
!>
!>
!
!
!
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yi | last post by:
Hi, I am a scientist and new to .NET programming. On my PC, I am using Windows 2000 professional with IIS, SQL Server 2000 (standard, personal), Visual Basic .net (2003, standard). By following...
3
by: Mikkky | last post by:
The sample code below returns and error " The type or namspace name 'Server' could not be found". Please help. using System;using System.IO; using System.Xml;using System.Diagnostics; using...
2
by: Tee | last post by:
Hi, I am currently using Server.MapPath in my aspx files, but because of I am using it more than once, I would like to move these code away from aspx and make it as a public function inside...
11
by: Ken Varn | last post by:
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...
20
by: Wes Groleau | last post by:
I was doing update statements in SQL Server 2000. I have a table with over 16 million rows. It came from several hundred delimited text files, and two of the columns are file ID (int) and Line...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.