运行时CLR(MDA)错误 [英] CLR (MDA) Error at Runtime

查看:66
本文介绍了运行时CLR(MDA)错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在反复调用一个函数以将数据从一台服务器传输到另一台服务器.但是,我收到以下错误消息.在特定的行上未发生该错误;因此,很难调试.

CLR无法从COM上下文0x1b1e78过渡到COM
上下文0x1b1fe8,持续60秒.拥有
的线程 目标上下文/公寓很可能在做
不抽水等待或处理运行时间非常长的操作
无需泵送Windows消息.这种情况
通常会对性能产生负面影响,并且可能
甚至导致应用程序变得不响应
或随着时间的推移不断累积内存使用量.致
为避免此问题,所有单线程单元(STA)
线程应使用泵送等待原语(例如
CoWaitForMultipleHandles)并定期发送消息
在长时间运行的操作中.

I''m in the process of calling a function repeatedly for transferring data from one server to another. However, I get the following error message. The error is not occurred on a particular line; so , it is hard to debug.

The CLR has been unable to transition from COM context 0x1b1e78 to COM
context 0x1b1fe8 for 60 seconds. The thread that owns the
destination context/apartment is most likely either doing a
non pumping wait or processing a very long running operation
without pumping Windows messages. This situation
generally has a negative performance impact and may
even lead to the application becoming non responsive
or memory usage accumulating continually over time. To
avoid this problem, all single threaded apartment (STA)
threads should use pumping wait primitives (such as
CoWaitForMultipleHandles) and routinely pump messages
during long running operations.

推荐答案

感谢亲爱的回复....但是还有更多困难的问题...我使用Visual Studio 2008,没有您建议的选项....
调试->例外->托管调试助手
因此,如果有任何想法请进一步说明.
Thanks Dear for kind reply....But little bit more hard problem is there...i Use visual studio 2008 and there no option that suggested by you....
Debug -> Exceptions -> Managed Debug Assistants
so what to do more if any idea plz specify.


我认为这是第十个问题,那是 http://blog.wpfwonderland.com/2007/08/16/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/ [
I think this is 10th question, that''s answer is first result of Google search[^].


OK here you go

http://blog.wpfwonderland.com/2007/08/16/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/[^]


这篇关于运行时CLR(MDA)错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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