软件退出,发现有线程还在运行,于是想在VS2010中查看当前项目运行后的线程列表,查看方法:
Debug - Windows - Threads
但是发现Threads窗口里面是空的:
程序已经运行,线程怎么没有呢?StackOverFlow上找到了答案:
https://stackoverflow.com/questions/13142000/no-threads-displayed-in-the-threads-debug-window
点击暂停(Pause)按钮,或者在代码中设置好断点都可以。
线程有了:
问题解决。