简体   繁体   中英

Using DLL in debug or release mode?

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.

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 (eg 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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM