Code Generation
Windows C++ applications (console applications or DLLs) using the MDS APIs must set the C/C++ Code Generation Category to Use run-time library: Multithreaded DLL. If an executable is built using the Single-threaded or Multithreaded libraries instead of the Multithreaded DLL library, an access violation will occur during program termination.