An unhandled non-continuable exception was thrown during process load

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).
 
B

B.

Is there any body can help???? This issue stoped me from doing anything
further.


B. said:
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).
 
W

William DePalo [MVP VC++]

B. said:
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
...
'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).

An exception of type 0xc0000005 is an "access violation". Access violations
occur when an application attempts to "touch" (read/write/execute) memory
addresses which are unowned or non-existent.

I suggest you step through your "InteropToManaged.dll" module.

By the way, do you know that you can NOT expect a _debug_ build of an
application to run on a machine which does not have the corresponding tool
set installed? Is that the issue on your colleague's machine?

(In fact, there is a licensing issue in doing that as well, but that's
another matter).

Regards,
Will
 
B

B.

This is still in the process of loading DLLs, not sure why
InteropToManaged.dll will have access violation.

My coworker rebuild the application at his machine, not copy over.
B. said:
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
...
'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).

An exception of type 0xc0000005 is an "access violation". Access violations
occur when an application attempts to "touch" (read/write/execute) memory
addresses which are unowned or non-existent.

I suggest you step through your "InteropToManaged.dll" module.

By the way, do you know that you can NOT expect a _debug_ build of an
application to run on a machine which does not have the corresponding tool
set installed? Is that the issue on your colleague's machine?

(In fact, there is a licensing issue in doing that as well, but that's
another matter).

Regards,
Will
 
W

William DePalo [MVP VC++]

B. said:
This is still in the process of loading DLLs, not sure why
InteropToManaged.dll will have access violation.

I'm not either. But that's what the stack trace says, or did I misread it?

Regards,
Will
 
O

Oleg Starodumov

Try these two things:

- Enable loader snaps:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\yourapp.exe
GlobalFlag = 0x2 (REG_DWORD)

With loader snaps enabled, run the application under debugger, check loader messages
in Debug Output window and see if there is something that can explain the problem.

- Configure the debugger to break on first chance exceptions
(see Exceptions dialog - "Thrown" column)

After a first-chance exception has been reported, check the call stack
(you will need good symbols for that, see VS documentation on how
to configure symbol server access)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top