Hi
I’ll migrate a VC++ 6.0 MFC solution to VC++ 2005 (managed c++). My solution consists of one exe-file which call’s some MFC extension DLL’s and some MFC extension DLL’s.
After I compile the code with "/clr" I get the "Loader Lock" Error on some DLL Main function’s. I have fixed the Loader Lock" Error by the manuals of MSDN library, but now I get these errors when I debug the code:
…
' myprogramm.exe' (Managed): Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcm80d.dll', Symbols loaded.
' myprogramm.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\455eebc099ae6c4bbe3920886da8b72d\System.ni.dll', No symbols loaded.
'myprogramm.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
First-chance exception at 0x7c81eb33 (kernel32.dll) in myprogramm.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0012d324..
First-chance exception at 0x7c81eb33 (kernel32.dll) in myprogramm.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7c81eb33 (kernel32.dll) in myprogramm.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7c81eb33 (kernel32.dll) in myprogramm.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7c81eb33 (kernel32.dll) in myprogramm.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7c81eb33 (kernel32.dll) in myprogramm.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
A first chance exception of type 'System.IO.FileLoadException' occurred in myprogramm.exe
An exception of type 'System.IO.FileLoadException' occurred in myprogramm.exe but was not handled in user code
Additional information: Could not load file or assembly 'myprogrammDLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxx0d40ceb5cc' or one of its dependencies. Could not find or load a type. (Exception from HRESULT: 0x80131522)
A first chance exception of type '<CrtImplementationDetails>.ModuleLoadException' occurred in msvcm80d.dll
First-chance exception at 0x7c81eb33 (kernel32.dll) in StabCS.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module.
Additional information: The type initializer for '<Module>' threw an exception.
Any Ideas how to fix the error?