本文介绍了执行报告时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用VB.NET 2008做报告.我使用数据集显示报表中的数据.当我运行报告时,它会处理很长时间,并且需要60分钟后
我看到一个错误窗口,显示:
"CLR在60秒钟内无法从COM上下文0x451420过渡到COM上下文0x451590.拥有目标上下文/公寓的线程很可能要么执行非泵送等待,要么处理非常长的运行操作而不进行泵送Windows消息:这种情况通常会对性能产生负面影响,甚至可能导致应用程序变得无响应或内存使用量随时间不断累积.为避免此问题,所有单线程单元(STA)线程均应使用泵送等待原语(例如CoWaitForMultipleHandles),并在长时间运行的操作中定期泵送消息."

我无法运行并查看报告.
如何纠正此错误?

谢谢.

Hi,

I am using VB.NET 2008 doing report. I used dataset to show the data in report. When I run the report, it processes for long time and after 60 mins
I get an error window showing:
"The CLR has been unable to transition from COM context 0x451420 to COM context 0x451590 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."

I am unable to run and see the report.
How to rectify this error?

Thank you.

推荐答案


这篇关于执行报告时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 20:54