我在Visual Studio 2010中使用MFC。我正在修改由其他人完成的代码。 VS2010加载了一些文件,但在加载最后一个dll文件时我得到了
第一次机会异常:Microsoft C ++异常:在内存位置0x0014faa0 ..
我想知道,有没有办法在加载dll文件时提出一个突破点? VS加载第三方DLL文件时发生异常。
答案 0 :(得分:1)
无需担心第三方代码中的第一次机会异常,因为这可能是其执行的正常部分。如果第三方代码没有处理异常,它将成为第二次机会异常,然后你就会知道出错了。
答案 1 :(得分:1)
如果您根据此博客看到第一次机会的预期可能没问题:
http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx
引用如下:
第一次机会异常是否意味着我的代码存在问题?
First chance exception messages most often do not mean there is a problem in the code. For applications / components which handle exceptions gracefully, first chance exception messages let the developer know that an exceptional situation was encountered and was handled.
这篇文章提供了相关信息 How can I set a breakpoint in referenced code in Visual Studio?