PC Review


Reply
Thread Tools Rate Thread

Can someone explain what "Server Busy" dialog is?

 
 
Ken Varn
Guest
Posts: n/a
 
      30th Jul 2003
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 Removed)
-----------------------------------


 
Reply With Quote
 
 
 
 
John Timney \(Microsoft MVP\)
Guest
Posts: n/a
 
      30th Jul 2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 Removed)
> -----------------------------------
> "John Timney (Microsoft MVP)" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:uSC#(E-Mail Removed)...
> > > 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 Removed)
> > > -----------------------------------
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ken Varn
Guest
Posts: n/a
 
      30th Jul 2003
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 Removed)
-----------------------------------
"John Timney (Microsoft MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:uSC#(E-Mail Removed)...
> > 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 Removed)
> > -----------------------------------
> >
> >

>
>



 
Reply With Quote
 
Jochen Kalmbach
Guest
Posts: n/a
 
      31st Jul 2003
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
 
Reply With Quote
 
Stefano \WildHeart\ Lanzavecchia
Guest
Posts: n/a
 
      31st Jul 2003

"John Timney (Microsoft MVP)" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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


 
Reply With Quote
 
Ken Varn
Guest
Posts: n/a
 
      31st Jul 2003
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 Removed)
-----------------------------------
"Leana" <(E-Mail Removed)> wrote in message
news:eQ8$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:uSC#(E-Mail Removed)...
> > 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 Removed)
> > -----------------------------------
> >
> >

>
>



 
Reply With Quote
 
Leana
Guest
Posts: n/a
 
      1st Aug 2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 Removed)




 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      1st Aug 2003
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" <(E-Mail Removed)>
!From: "Ken Varn" <(E-Mail Removed)>
!References: <uSC#(E-Mail Removed)> <eQ8$(E-Mail Removed)>
!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: <(E-Mail Removed)>
!Newsgroups:
microsoft.public.dotnet.framework.clr,microsoft.public.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!TK2MSFTNGXA05.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.
!(E-Mail Removed)
!-----------------------------------
!"Leana" <(E-Mail Removed)> wrote in message
!news:eQ8$(E-Mail Removed)...
!> 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" <(E-Mail Removed)> wrote in message
!> news:uSC#(E-Mail Removed)...
!> > 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 Removed)
!> > -----------------------------------
!> >
!> >
!>
!>
!
!
!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please explain what "Empty path has no directory" means with Server.MapPath Alan Silver Microsoft ASP .NET 1 28th Jun 2005 07:42 PM
Can't publish w/Frontpage 2003 - "Server Error: Web server is busy. Please try again." Jeff Gledhill Microsoft Frontpage 5 11th May 2005 03:11 AM
"Unable to load read free/busy data" dialog =?Utf-8?B?QWRhbUU=?= Microsoft Outlook Discussion 0 1st Feb 2004 10:11 AM
"Server Busy... Switch to... Retry" when transfering files to a web folder Chad Salisbury Microsoft Windows 2000 Networking 1 17th Oct 2003 11:07 PM
Can someone explain what "Server Busy" dialog is? Ken Varn Microsoft VC .NET 6 1st Aug 2003 04:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 PM.