Scott Currie discusses fixing a problem with Invoking MSIL Functions under Loader Lock in Microsoft Visual C++ 2005: http://msdn.microsoft.com/visualc/default.aspx?pull=/library/en-us/dnvs05/html/debgb1LdLk.asp