调试程序窗口不会关闭 [英] Debugged Program Window Won't Close
问题描述
发生的是每隔一段时间我杀死程序与调试|停止调试(Shift-F5)。 VS停止程序,但控制台窗口保持打开!如果我坐在一个断点并按住Shift-F5,它将会正常终止,但是如果程序在停止时运行全倾斜,我经常会看到这个。
大问题是我无法关闭这些僵尸窗口。在任务管理器中使用结束任务什么也不做(没有消息,没有任何东西)。当我关闭机器时,无法由于孤儿,我必须诉诸实际关闭电源。
我认为这是连接到有DLL和EXE项目在同一个SLN中,就像在两个VS实例中这个项目一样工作的几个月,一个用于DLL,另一个用于EXE。当我工作时,我会不停地在窗户之间来回跳动。这个问题从来没有发生过,直到我把这两个项目放在一个SLN中。单一SLN的工作效果好多了,但是这种异常情况非常刺激。
任何想法任何人?
更新
经过一点搜索( here ),我发现它似乎与上周二的一个更新有关(KB977165或KB978037 )。感谢Microsoft对您的出色的预发行测试。
是KB978037。卸载它解决了这个问题。
I'm using VS 2008 on a 64-bit XP machine. I'm debugging a 32-bit C++ DLL via a console program. The DLL and EXE projects are contained in the same SLN so that I can modify the DLL as I test.
What happens is that every once in a while I kill the program with Debug | Stop Debugging (Shift-F5). VS stops the program, but the console window stays open! If I'm sitting at a breakpoint and hit Shift-F5, it will terminate properly, but if the program is running full-tilt when I stop it, I often see this instead.
The big problem is that I can't close these zombie windows. Using End Task in Task Manager does nothing (no message, no nothing). When I shut down the machine, it is unable to due to the orphans and I have to resort to actually turning off the power.
I think this is connected to having the DLL and EXE project in the same SLN, as for months I worked on this project in 2 VS instances, one for the DLL and the other for the EXE. I would continually jump back and forth between the windows as I worked. This problem never happened until I put the two projects into a single SLN. The single SLN works a lot better, but this anomaly is very irritating.
Any ideas anyone?
UPDATE
After a bit of searching (here), I found that it appears to have to do with one of the updates from last Tuesday (KB977165 or KB978037). Thank you Microsoft for your excellent pre-release testing.
It's KB978037. Uninstalling it resolves the issue.
这篇关于调试程序窗口不会关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!