First post, by reenigne
- Rank
- Oldbie
I have a weird problem. I'm hoping somebody here has seen it before and/or has an idea about how to fix it.
I built DOSBox SVN in Visual Studio 2013. Not too hard, resulting binary seems to run fine. However, if the resulting DOSBox crashes or otherwise fails to process Windows messages (in particular, stopping it in the debugger causes this) the entire host machine becomes almost unusable - each keypress or mouse movement takes maybe 5-10 seconds to have an effect (which makes the mouse completely unusable and debugging impossible). The only thing I can do about it (short of power cycling the host machine) is alt+tab to a command prompt window and running "taskkill /f /im dosbox.exe" and "taskkill /f /im devenv.exe" - a tedious process which takes several minutes with the delays between each keypress.
It seems like there is some kind of global input hook in effect and Windows waits for this to timeout before processing any input messages, but I don't see any references to SetWindowsHook or similar in the source code to either DOSBox or SDL 1.2.15.
I've seen this on two different machines (both running Windows 7) so I don't think it's my mouse/keyboard/video drivers. Weirdly, if I remotely login to another machine via Remote Desktop, I can then debug DOSBox just fine on that machine.
I haven't seen this behavior debugging any other applications (on either of these machines) - what obscure Windows API is DOSBox and/or SDL using that could bring the whole machine to its knees like this?