What may be the causes of the error 0x80010108 (The object invoked has disconnected from its clients)?(错误 0x80010108(调用的对象已与其客户端断开连接)的原因可能是什么?)
问题描述
在 C++ 程序中,调用 coclass 的方法返回错误 0x80010108(调用的对象已与其客户端断开连接).可能是什么原因造成的?
In C++ program the call to method of coclass returns the error 0x80010108 (The object invoked has disconnected from its clients). What may be the causes of that?
推荐答案
这是一个RPC错误,当你使用进程外COM时你会看到它.它告诉您服务器 .exe 停止运行.应该是被炸了或者即使仍然有活动的接口引用,也决定退出.那可能是引用计数问题.或不当使用 CAtlModule::Lock().等等,我只能猜测.使用 Tools + Attach to Process 调试服务器并找出它决定退出的原因.
It is an RPC error, you'll see it when you use out-of-process COM. It tells you that the server .exe stopped running. It probably bombed. Or decided to exit even though there were still active interface references. That could be a reference count problem. Or improper use of CAtlModule::Lock(). Etcetera, I can only guess. Debug the server with Tools + Attach to Process and find out why it decided to quit.
这篇关于错误 0x80010108(调用的对象已与其客户端断开连接)的原因可能是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误 0x80010108(调用的对象已与其客户端断开连接)的原因可能是什么?
基础教程推荐
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- CString 到 char* 2021-01-01
