我有使用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时,一切都很顺利。我应该在代码中查找一些错误,还是调试/发布模式会对此异常产生影响?
答案 0 :(得分:0)
对象定义在调试和释放模式下是不同的。因此,如果将这样的对象从调试模块传递给发布模块,则错误并不令人意外。这并不意味着你有一个错误。