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(调用的对象已与其客户端断开连接)的原因可能是什么?


基础教程推荐
- 管理共享内存应该分配多少内存?(助推) 2022-12-07
- 为什么语句不能出现在命名空间范围内? 2021-01-01
- 从 std::cin 读取密码 2021-01-01
- 如何在不破坏 vtbl 的情况下做相当于 memset(this, ...) 的操作? 2022-01-01
- 如何使图像调整大小以在 Qt 中缩放? 2021-01-01
- 如何“在 Finder 中显示"或“在资源管理器中显 2021-01-01
- Windows Media Foundation 录制音频 2021-01-01
- 为 C/C++ 中的项目的 makefile 生成依赖项 2022-01-01
- 在 C++ 中循环遍历所有 Lua 全局变量 2021-01-01
- 使用从字符串中提取的参数调用函数 2022-01-01