Just don't try to cross the MSVCRT.DLL boundry into MSVCRTD.DLL area and expect things to work right. I'm thinking Environment variables here but I have seen pointers newed in debug land and freed in release land crash horribly.
and non-optimized code together. In fact, with runtime linking,
programs that use system DLLs are always linking against "release" mode
versions. This means that I can take my program, compile it in "debug"
mode, link against Windows DLLs (which are compiled in "release" mode)
and use the functions contained in them.