Using DLL in debug or release mode?

一曲冷凌霜 提交于 2019-12-13 04:59:24

问题


I downloaded a precompiled SQLite DLL from http://www.sqlite.org at this link sqlite-dll-win32-x86-3080600.zip.

Can I use the same DLL both in Debug and Release mode? What would be the difference and how is it possible? I'm using Visual C++ 2012 Compiler.


回答1:


For the DLL internals to be visible in debug mode, it has to be compiled in debug mode. Otherwise, no debug info will be available (e.g. watch variables, step into, etc.). On the other hand, a DLL compiled in debug mode shouldn't be used for release since it is slower and contains unnecessary code. I am not sure if the existence of the debug functions constitute a security risk, but having additional hooks in your DLL in a production environment doesn't sound safe.

Hope that helps!



来源:https://stackoverflow.com/questions/25829619/using-dll-in-debug-or-release-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!