线程已退出,code 0(为0x0),没有unhanded例外线程、code、unhanded

2023-09-03 15:51:34 作者:时间的尘埃

在调试我的C#应用​​程序,我已经注意到了以下句子大量出现: 线程 - 已退出与code 0(为0x0)。 该应用程序将继续工作,没有异常被逮住/ unhanded。

While debugging my C# application I have noticed a large amount occurrences of the following sentence: "The thread -- has exited with code 0 (0x0)." The application continues to work and no exception is catched/unhanded.

该应用程序在Windows 7 64位运行和调试与x86平台。

The application is running on Windows 7 64bit and debugged with x86 platform.

推荐答案

这是刚刚调试信息。您可以通过右键点击开关,关闭到输出窗口,并取消该线程结束的消息。

This is just debugging message. You can switch that off by right clicking into the output window and uncheck the thread ended message.

http://msdn.microsoft.com/en-us/library/bs4c1wda.aspx

在除了从您的应用程序,在输出窗口中编写出   可以显示相关信息:

In addition to program out from your application, the Output window can display the information about:   

模块中的调试器加载或卸载。

Modules the debugger has loaded or unloaded.

这抛出异常。

进程退出。

线程的退出。