C++ 第一次机会异常 - 长在内存位置?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1716363/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 20:59:36  来源:igfitidea点击:

First chance exception - long at memory location?

c++compiler-constructionexception

提问by Chris

What is this and how can I handle/fix it?

这是什么,我该如何处理/修复它?

First-chance exception at 0x756fb727 in Program.exe:
Microsoft C++ exception: long at memory location 0x0018f7a4.

I am getting about a thousand of these each time I run my application. How can I track this down and fix it/

每次运行我的应用程序时,我都会收到大约一千个这样的信息。我如何追踪并修复它/

回答by Aaron

In visual studio go to the Debug menu and select "Exceptions...". Turn on all the first chance exception handlers (they default to off).

在 Visual Studio 中,转到 Debug 菜单并选择“Exceptions...”。打开所有第一次机会异常处理程序(它们默认为关闭)。

Now when you run in the debugger it will break at the point the exception is thrown.

现在,当您在调试器中运行时,它将在抛出异常时中断。

回答by Ashish