473,395 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

An unhandled non-continuable exception was thrown during process load

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_1fc 8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc 8b3b9a1e18e3b_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_1fc 8b3b9a1e18e3b_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_1fc 8b3b9a1e18e3b_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_1fc 8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc 8b3b9a1e18e3b_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).

Oct 28 '06 #1
5 8184
B.
Is there any body can help???? This issue stoped me from doing anything
further.
B. wrote:
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_1fc 8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc 8b3b9a1e18e3b_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_1fc 8b3b9a1e18e3b_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_1fc 8b3b9a1e18e3b_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_1fc 8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc 8b3b9a1e18e3b_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).
Oct 30 '06 #2
"B." <gu*******@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
>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
Oct 30 '06 #3
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.

William DePalo [MVP VC++] wrote:
"B." <gu*******@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
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
Oct 31 '06 #4
"B." <gu*******@gmail.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
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
Oct 31 '06 #5

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)

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

Nov 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James Baker | last post by:
I'm getting an error message "An unhandled data type was encountered." No line number, no nothing. Any ideas on what to look for? Thanks, James
1
by: wooks | last post by:
I have some information embedded in included schemas which I want to access at run-time for the purposes of contructing a GUI (they will support field labels and tool tips). The options seem to...
2
by: Shravan | last post by:
Hi, Does anybody know how to catch unhandled exceptions in an application. I have tried using AppDomain.UnhandledException Event Application.ThreadException Event but they were not catching...
1
by: tolisss | last post by:
when i get an unhadled error the dubbuger stops at the main procedure at -->"Application.Run(new Form1())" and the stack is empty. But if i run the application without the debuger a must more...
2
by: Wilfried Mestdagh | last post by:
Hi, I use VS 2005 beta2. On existing project I added a new form with a webBrowser on it. When the webbrowser is used then at shutdown time of my application I have unhandled AV,: Attempted to...
5
by: Sam Loveridge | last post by:
Hi All. I'm hoping someone can point me in the direction of a solution to unhandled exceptions in MDI child forms causing the application to crash. I've found various articles describing a...
1
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
I am writing an httpModule for unhandled exceptions. I want to log what application the error occured in. Normally in 1.x I would do this by getting the AssemblyName associated with the executing...
5
by: Neil | last post by:
Does anyone have any code for setting the VBA option to "Break on Unhandled Errors" (Access 2000). Thanks! Neil
9
by: ARC | last post by:
Hello all, I've noticed some funny things in my 2007 app lately, particularly where it's not putting up errors when I know a field doesn't exist, etc. In the VBA window, under Tools, Options,...
4
by: asmx126453 | last post by:
This is the error i Get Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index It points to this code if (!IsPostBack) ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.