prevent server busy, switch to retry?
The ms article 248019 states:
If you call a method on a COM server from an MFC COM client application and if the method takes a long time to process and return back, you won't be able to do anything on the client application and the OLE Server Busy dialog box pops up.
You get the option to switch to another application or retry the operation.
Q1) Should applications prevent these dialogs from showing or is this a valid windows message that users need to get used to?
Q2) If your application is showing a waitcursor anyway, will the dialog still come up?
[593 byte] By [
jagnini] at [2007-11-19 5:27:16]

# 1 Re: prevent server busy, switch to retry?
I got the same problem. I need my application to cancel the job in COM object instead of getting the option "Switch-To-Retry".
Any idea from Guru(s)?
Cheers :)
ryu at 2007-11-10 3:40:40 >

# 2 Re: prevent server busy, switch to retry?
Aha... I found the answer...
You could use:App.OleRequestPendingTimeout
App.OleServerBusyTimeout
App.OLEServerBusyRaiseError to control whether to display Switch-To-Retry or not.
I hope that you are not waiting too long (only 8 months) for the answer ;)
Cheers :)
PS. This fix only applies when you are coding in Visual Basic.
ryu at 2007-11-10 3:41:40 >

# 3 Re: prevent server busy, switch to retry?
Aha... I found the answer...
You could use:App.OleRequestPendingTimeout
App.OleServerBusyTimeout
App.OLEServerBusyRaiseError to control whether to display Switch-To-Retry or not.
I hope that you are not waiting too long (only 8 months) for the answer ;)
Cheers :)
PS. This fix only applies when you are coding in Visual Basic.
I can't find any App object. Are you talking about CWinApp. I can't find any such method there. Or are you talking about VB.
# 4 Re: prevent server busy, switch to retry?
I can't find any App object. Are you talking about CWinApp. I can't find any such method there. Or are you talking about VB.
Look at the part you even had quoted. It says VB. Also, please do not post on old thread. This is 1.5 years old. If you have a problem, create new thread and state your problem.