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
!> > -----------------------------------
!> >
!> >
!>
!>
!
!
!