cuốn sách gpt4 ai đã làm

c# - CLR 无法从 COM 上下文 0x3b2d70 转换到 COM 上下文

In lại Tác giả: Hồ Xil 更新时间:2023-11-01 07:55:56 30 4
mua khóa gpt4 Nike

在调试应用程序时出现以下错误。

The CLR has been unable to transition from COM context 0x3b2d70 to COM context 0x3b2ee0 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.

为什么系统会抛出这个错误。

câu trả lời hay nhất

我找到了解决方案

需要在 Debug->Exceptions->Managed Debugging Assistants 下取消勾选 ContextSwitchDeadlock。

取消选中 ContextSwitchDeadlock 后不会抛出错误。

关于c# - CLR 无法从 COM 上下文 0x3b2d70 转换到 COM 上下文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4871013/

30 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress