作者CrazyGod (CrazyGod)
看板C_Sharp
标题[问题] CRL/STA 关於程式过久
时间Thu Feb 4 19:34:27 2010
每当我在处理庞大文字时,
都会跳出这个讯息,可是又不大懂..
不知是否有特殊方法可以避免.
希望各位高手能解答我的疑惑,万分感谢
讯息如下:
The CLR has been unable to transition from COM context 0x2816c10 to
COM context 0x2816e60 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.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 120.126.194.160
1F:推 Elly:好像只要跑到无限回圈就会有这种讯息,你再检查一下code y 02/05 00:11
2F:→ CrazyGod:可是会出现 结束/继续之选项,点了继续还真的是跑得玩. 02/05 11:59
3F:→ CrazyGod:所以不知是...什麽情况耶.. 02/05 11:59
4F:→ CrazyGod: 得完. 02/05 12:00