“First-chance exception” meaning in MFC Application?

前端 未结 3 648
北恋
北恋 2020-12-10 22:59

When I run my Windows Application(MFC) I get two Warnings.

First-chance exception at 0x01046a44 in XXX.exe: 0xC0000005: Access violation reading location 0x000

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 23:56

    What is a first chance exception?

    When an application is being debugged, the debugger gets notified whenever an exception is encountered. At this point, the application is suspended and the debugger decides how to handle the exception. The first pass through this mechanism is called a "first chance" exception. Depending on the debugger's configuration, it will either resume the application and pass the exception on or it will leave the application suspended and enter debug mode. If the application handles the exception, it continues to run normally.

    See this Article for more details.

提交回复
热议问题