防止“服务器太忙”对话
大家好,
我有以下问题:
我正在调用C函数来自C ++类。 C ++类本身是从托管(C#)程序调用的。 C函数隐藏COM对象的创建(在本例中为MATLAB引擎实例)。本机MATLAB是一个Java应用程序,所以我_suspect_它不是INPTOC服务器。
当调用C函数时需要一段时间然后服务器也是显示繁忙的对话框,让我选择更改为...(MATLAB窗口或重复...(某些;))。这很可能是因为MATLAB引擎有一个窗口提示用户输入(控制台)。
我的问题是:
是否有任何Win32 / COM功能可以阻止此对话框出现?我可以设置任何参数(例如队列大小)还是可以添加允许覆盖此行为的回调(某种方式)?
提前谢谢
Lars
Hi all,
I have the following problem:
I am calling a C function from a C++ class. The C++ class itself is called from a managed (C#) program. The C function hides the creation of a COM object (a MATLAB engine instance in this case). Natively MATLAB is a Java application, so I _suspect_ it is not an INPTOC server.
When the C function is called it takes a while and then the "Server is too busy" dialog is shown which lets me choose either "Change to..." (the MATLAB window or "Repeat..." (something ;)). This is most likely due to the fact that the MATLAB engine has an window which prompts the user for input (a console).
My question is:
Is there any Win32/COM function that allows to prevent this dialog from appearing? Can I set any parameter (e.g. a queue size) or can I add a callback (somehow) that allows to override this behavior?
thanks in advance
Lars