Console window left open when debugging stoped
hi everybody,
i allocated a console window (AllocConsole, synced with stdio) as debug output, recently i found it will be left open when i stopped debugging, for example, there is an assert failure then i pressed 'stop' (vs2008). the wild console window cant be closed by pressing its close button nor be killed via task manager, it behaves just like the normal one unless it cant be destroyed and even worse : the computer cant be turned off like usual (i guess the system is waiting for those consoles to be terminated but it never make it).
here is some background info.:
1. vs 2008
2. the console will be correctly freed with FreeConsole when exit normally
Further, i am now wondering what is the debugger going to do with a interrupted program when i stop debugging? Will the debugger continue to do the final clean jobs like free memorys, consoles, stop running threads? ( the process is stopped so the threads will be terminated very likely), what's your opinion?
any hints would be helpful thank you.
Pet
Is it possible you are running into the bug in the Windows-Update KB978037? If so, manually uninstalling it will fix the problem. (See also here)
Thanks BitMaster for your info.,
Seems its a known bug about recent Windows Update, hope they will get this fixed asap.
Here is msdn blog link
Quote:Original post by Pet123
hope they will get this fixed asap.
I would not hold my breath. I first ran into this problem nearly a month ago and very apparently the problem is still there. Uninstalling the Update will probably save yourself time and nerves.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement