I have enabled breaks on CLR exceptions in Debug mode and now I receive the following error, which must be why the DLL cannot be loaded:
Managed Debugging Assistant 'LoaderLock' has detected a problem in '----.exe'.
Additional Information: DLL 'IMyCLIInterface.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
However I do not even have a DLLMain or entry point, I don't see where this could be happening? How can I debug this effeciently, given that I am dealing with a large native C++ code base (which links against other C++ static libs, and API's)?