If you throw an exception from inside an MFC dialog, the app hangs, even if you have a catch block in your code. It refuses to respond to the mouse or keyboard, and the on
If you are interested in learning about how Windows detects apphangs we have added some posts to this on the Windows Error Reporting blog:
Let there be hangs part 1 of 4
Let there be hangs part 2 of 4
Let there be hangs part 3 of 4
Let there be hangs part 4 of 4
Important to note is that this information when sent through Microsoft's Windows Error Reporting gets communicated to the software developers to try and fix these issues. If you are sending in your error reports you WILL help fix issues that are occuring on your PC!
I am a Program Manager at Microsoft on the Windows Error Reporting team.