添加自制控件时发生错误

Vimmy_wan 2016-11-14 10:31:40
??? DisconnectedContext
Message: Transition into COM context 0x5ea2c0 for this RuntimeCallableWrapper failed with the following error: System call
failed. (Exception from HRESULT: 0x80010100 (RPC_E_SYS_CALL_FAILED)). This is typically because the COM context
0x5ea2c0 where this RuntimeCallableWrapper was created has been disconnected or it is busy doing something else.
Releasing the interfaces from the current COM context (COM context 0x5ea150). This may cause corruption or data loss.
To avoid this problem, please ensure that all COM contexts/apartments/threads stay alive and are available for context
transition, until the application is completely done with the RuntimeCallableWrappers that represents COM components that
live inside them.
当向一个项目中添加两个以上的自制控件时,就报了以上的错误,请大神分析。
...全文
467 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Vimmy_wan 2017-06-27
  • 打赏
  • 举报
回复
引用 1 楼 idaaa 的回复:
加几个都没事呀~ 你这发的一堆错误代码,我又不是.net创始者,实在看不懂哪里出错. 有可能是你自己写的用户控件没优化好
杯具的是这些自定义控件是别人写的 我只是负责引用啊
im战术 2016-11-22
  • 打赏
  • 举报
回复

加几个都没事呀~
你这发的一堆错误代码,我又不是.net创始者,实在看不懂哪里出错.
有可能是你自己写的用户控件没优化好

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧