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

后端 未结 3 1710
北荒
北荒 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:37

    Mark's answer is correct. For a much more rigorous analysis of this problem and a detailed suggestion for dealing with it in your own code, see this FAQ by Doug Harrison (section Q6 in particular).

提交回复
热议问题