473,322 Members | 1,347 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,322 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 16868
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.