“优先机会例外"; MFC应用程序中的含义? [英] "First-chance exception" meaning in MFC Application?

查看:265
本文介绍了“优先机会例外"; MFC应用程序中的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Windows应用程序(MFC)时,我收到两个警告.

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

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

First-chance exception at 0x75fdb9bc (KernelBase.dll) in XXX.exe: 0x000006BA: The RPC server is unavailable.

我能知道它们的意思吗?

May I know what they mean?

推荐答案

什么是第一次机会例外?

在调试应用程序时,每当遇到异常时,调试器都会收到通知.此时,应用程序已挂起,调试器决定如何处理异常.通过这种机制的第一次通过被称为第一次机会"异常.根据调试器的配置,它会恢复应用程序并传递异常,或者使应用程序挂起并进入调试模式.如果应用程序处理了该异常,它将继续正常运行.

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.

这篇关于“优先机会例外"; MFC应用程序中的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆