Why does my MFC app hang when I throw an exception?

后端 未结 3 1715
北荒
北荒 2020-12-18 10:35

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

3条回答
  •  被撕碎了的回忆
    2020-12-18 10:39

    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.

提交回复
热议问题