April 19, 2005

VC2005: Static CRT and /clr is incompatible!

Starting with VC2005 (Beta2), you cannot create a C++/CLI assembly wich uses the static CRT (multithreaded) version! This is not supported anymore (of course, this was the default in VC2002/2003!)

The reason might be the solution for the loader-lock problem. In VC2005 you do not need to make some ugly steps to avoid the loader-lock problem. No IJW (it just works). But therefor the initialization of the CRT needs to be done in a DLL (because this is the only place where the unmanged world can live (DllMain)).

The only small docu is at /clr


Posted 2 years, 9 months ago on April 19, 2005
The trackback url for this post is http://blog.kalmbachnet.de/bblog/trackback.php/38/

Comments have now been turned off for this post