I have a DLL supplied by a 3rd party along with an accompanying .NET 2.0 assembly that wraps it. If I create a .NET 3.5 project with VS2008 I am able to call into the DLL via the wrapper assembly and it works OK. However, if I create an equivalent .NET 4.0 project with VS2010 then I get a R6030 - CRT not initialized
error in a message box at the time the DLL is loaded.
Is there something I can do to get this to work in a .NET 4.0 project? Could it be related to the CAS changes, or something else?
I'm carrying on with my work in VS2008 for now, but it would be good to understand what's happening...