B
B.
I know there is similar post few years back, but it didn't help solving
my problem:
We have a big project. Our legacy code is ported to VC++ 2005 recently.
We have new feature written in C#.Net. We have developed a interop dll
in the middle so that our legacy code can call C#.Net code. Everything
is okay on my machine. But when my co-worker compiled and run it, there
is an error message. I noticed that after loading
'C:\WINDOWS\system32\usp10.dll', it try to unload everything. I have
included a listing of DLLs loading and unloading. Does anyone have any
suggestion?
'winapp.exe': Loaded 'C:\source\V150\simply\debug\winapp.exe', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\wininet.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_qflib.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_utils.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_bus.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_res.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_glbls.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_error.dll',
Symbols loaded.
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_io.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols
loaded.
'winapp.exe': Loaded
'C:\source\V150\simply\debug\InteropToManaged.dll', Symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols
loaded.
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_io.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\shell32.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll'
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_error.dll'
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_glbls.dll'
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_res.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\wininet.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\shlwapi.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\oleaut32.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\ole32.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\crypt32.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\msasn1.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\mscoree.dll'
'winapp.exe': Unloaded
'C:\source\V150\simply\debug\InteropToManaged.dll'
Debugger:: An unhandled non-continuable exception was thrown during
process load
The program '[3876] winapp.exe: Native' has exited with code
-1073741819 (0xc0000005).
my problem:
We have a big project. Our legacy code is ported to VC++ 2005 recently.
We have new feature written in C#.Net. We have developed a interop dll
in the middle so that our legacy code can call C#.Net code. Everything
is okay on my machine. But when my co-worker compiled and run it, there
is an error message. I noticed that after loading
'C:\WINDOWS\system32\usp10.dll', it try to unload everything. I have
included a listing of DLLs loading and unloading. Does anyone have any
suggestion?
'winapp.exe': Loaded 'C:\source\V150\simply\debug\winapp.exe', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\wininet.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_qflib.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_utils.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_bus.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_res.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_glbls.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_error.dll',
Symbols loaded.
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150\simply\debug\wa_io.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols
loaded.
'winapp.exe': Loaded
'C:\source\V150\simply\debug\InteropToManaged.dll', Symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols
loaded.
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_io.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\shell32.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll'
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_error.dll'
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_glbls.dll'
'winapp.exe': Unloaded 'C:\source\V150\simply\debug\wa_res.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\wininet.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\shlwapi.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\oleaut32.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\ole32.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\crypt32.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\msasn1.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\system32\mscoree.dll'
'winapp.exe': Unloaded
'C:\source\V150\simply\debug\InteropToManaged.dll'
Debugger:: An unhandled non-continuable exception was thrown during
process load
The program '[3876] winapp.exe: Native' has exited with code
-1073741819 (0xc0000005).