Wednesday, October 29, 2008

C++/ATL library works in debug but not in release

Ever run across a library that works when compiled in Debug mode but produces erratic results when compiled in Release mode? Not interested in running afoul of the redistribution limitations on the debug runtimes? Nothing like good old static linking to save the day. There are implications for statically linking the debug runtime library to your executable but at least one of these matters little in today's memory rich environment. If you've got separate libraries each statically linked to its own instance of the debug runtime library then I believe there are issues with propagation of hardware traps...

No comments :

Post a Comment