【问题标题】:Debug/Release configuration influence on compiled binary调试/发布配置对已编译二进制文件的影响
【发布时间】:2014-05-19 20:48:13
【问题描述】:

我的应用程序 myApp.exe 正在使用 myDll.dll 。 dll以Release模式编译。 myQApp.exe 在Debug 配置模式下运行。在 myDll.dll 函数调用期间出现异常:

Windows has triggered a breakpoint in myApp.exe.

This may be due to a corruption of the heap, which indicates a bug in myApp.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while myApp.exe has focus.

The output window may have more diagnostic information.

当我放置使用调试配置编译的 dll 时,一切正常。我应该在代码中寻找一些错误还是调试/发布模式会影响这个异常?

【问题讨论】:

    标签: visual-studio-2010 visual-c++


    【解决方案1】:

    对象定义在调试和发布模式下不同是很常见的。因此,如果您将这样的对象从调试模块传递到发布模块,错误也就不足为奇了。这并不意味着您有错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-23
      • 2010-10-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多