DCOM:调用的对象已与其客户端断开连接 [英] DCOM: The object invoked has disconnected from its clients

查看:145
本文介绍了DCOM:调用的对象已与其客户端断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次发帖到微软论坛。我希望我能把它寄到正确的地方。如果没有,请不要冒犯并将我重定向到另一个论坛。

This is the first time I am posting to a Microsoft forum. I hope i am posting this in the right place. If not, please do not take offense and redirect me to another forum.

我的问题:

问候,

Tim

推荐答案

您好
Tim Jansen

感谢您在此处分享您的问题。

Thank you for sharing your issue on here.

这是发展问题的正确论坛。

Here is correct forum for developing issue.

>>"由此我们得出结论,RPCSS服务必须发送ping消息。这是正确的吗? "

>>" From this we conclude that the RPCSS service must be sending the ping messages. Is this correct? "

据我所知,DCOM为组件提供自动垃圾回收,  DCOM使用pinging协议来检测客户端是否处于活动状态。 客户端计算机定期向DCOM服务器发送ping消息。  

As far as I know that DCOM provides automatic garbage collection for components ,  DCOM uses a pinging protocol to detect if client are live.  A client machine periodically sends a ping message to the DCOM server.  

如果DCOM服务器连续3次没有收到ping消息,则假定客户端已经死亡。  DCOM假定与客户端断开连接。  DCOM会自动减少死客户使用的
组件的引用计数。  

If the ping message is NOT received by the DCOM server 3 times in a row then the client is assumed to be dead.  DCOM assumes that the connection is broken with the client.  DCOM automatically decrements the reference count of the component used by the dead client.  

因此服务无法将ping消息发送给客户端。 ping消息必须从客户端发送。

So the service cannot send the ping message to client. the ping message must be sent from client.

>>"是否有关于如何从客户端应用程序和客户端计算机的角度运行ping操作的详细文档?  "

>>" Is there detailed documentation about how the pinging mechanism works from the perspective of the client application and client machine?  "

您可以参考
文件

>>"  可以阻止单线程单元中的线程导致所描述的断开连接问题吗?  "

>>"  Can blocking a thread in a single threaded apartment cause the described disconnect problem?  "

如果要阻止线程等待其他。 你可以使用
WaitForObject
方法 为确保您的对象不会无意中阻止自身或公寓中的其他对象,请在挂起线程执行时始终使用
MsgWaitForObject MsgWaitForMultipleObjects

If you want to block the thread for waiting other.  you could use the WaitForObject method.  To ensure that your object does not inadvertently block itself or other objects in the apartment, always use MsgWaitForObject or MsgWaitForMultipleObjects when suspending thread execution.

最好的问候,

Hart

如果您的问题已经解决,请记住通过将有用的帖子标记为答案来关闭你的帖子,这些答案对于有相同问题的其他人有用。

If your issue has been resolved, please remember to close your thread by marking useful posts as answer that can be helpful for other person with same issue.


这篇关于DCOM:调用的对象已与其客户端断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆