调试/释放配置对编译二进制文件的影响

时间:2014-05-19 11:19:26

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

我有使用myDll.dll的应用程序myApp.exe。 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.

当我放置使用Debug配置编译的dll时,一切都很顺利。我应该在代码中查找一些错误,还是调试/发布模式会对此异常产生影响?

1 个答案:

答案 0 :(得分:0)

对象定义在调试和释放模式下是不同的。因此,如果将这样的对象从调试模块传递给发布模块,则错误并不令人意外。这并不意味着你有一个错误。