473,671 Members | 2,231 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\sys tem32\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\w inapp.exe', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\ntdll.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\kernel32. dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\wininet.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\advapi32. dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\rpcrt4.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\crypt32.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\msvcrt.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\user32.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\gdi32.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\msasn1.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\oleaut32. dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\ole32.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\shlwapi.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_qflib.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_utils.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cp80d.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cr80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_bus.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_res.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_glbls.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_error.dll',
Symbols loaded.
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugMF C_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_c8452471\mfc 80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_io.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\shell32.d ll', No symbols
loaded.
'winapp.exe': Loaded
'C:\source\V150 \simply\debug\I nteropToManaged .dll', Symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\mscoree.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\imm32.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\lpk.dll', No symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\usp10.dll ', No symbols
loaded.
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_io.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\shell32.d ll'
'winapp.exe': Unloaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugMF C_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_c8452471\mfc 80d.dll'
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_error.dll'
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_glbls.dll'
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_res.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cp80d.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cr80d.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\wininet.d ll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\shlwapi.d ll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\oleaut32. dll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\ole32.dll '
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\crypt32.d ll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\msasn1.dl l'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\mscoree.d ll'
'winapp.exe': Unloaded
'C:\source\V150 \simply\debug\I nteropToManaged .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 8205
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\sys tem32\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\w inapp.exe', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\ntdll.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\kernel32. dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\wininet.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\advapi32. dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\rpcrt4.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\crypt32.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\msvcrt.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\user32.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\gdi32.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\msasn1.dl l', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\oleaut32. dll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\ole32.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\shlwapi.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_qflib.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_utils.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cp80d.dll',
Symbols loaded.
'winapp.exe': Loaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cr80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_bus.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_res.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_glbls.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_error.dll',
Symbols loaded.
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugMF C_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_c8452471\mfc 80d.dll',
Symbols loaded.
'winapp.exe': Loaded 'C:\source\V150 \simply\debug\w a_io.dll', Symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\shell32.d ll', No symbols
loaded.
'winapp.exe': Loaded
'C:\source\V150 \simply\debug\I nteropToManaged .dll', Symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\mscoree.d ll', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\imm32.dll ', No symbols
loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\lpk.dll', No symbols loaded.
'winapp.exe': Loaded 'C:\WINDOWS\sys tem32\usp10.dll ', No symbols
loaded.
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_io.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\shell32.d ll'
'winapp.exe': Unloaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugMF C_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_c8452471\mfc 80d.dll'
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_error.dll'
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_glbls.dll'
'winapp.exe': Unloaded 'C:\source\V150 \simply\debug\w a_res.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cp80d.dll'
'winapp.exe': Unloaded
'C:\WINDOWS\Win SxS\x86_Microso ft.VC80.DebugCR T_1fc8b3b9a1e18 e3b_8.0.50727.4 2_x-ww_f75eb16c\msv cr80d.dll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\wininet.d ll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\shlwapi.d ll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\oleaut32. dll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\ole32.dll '
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\crypt32.d ll'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\msasn1.dl l'
'winapp.exe': Unloaded 'C:\WINDOWS\sys tem32\mscoree.d ll'
'winapp.exe': Unloaded
'C:\source\V150 \simply\debug\I nteropToManaged .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*******@gmai l.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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\sys tem32\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\w inapp.exe', Symbols
...
'C:\source\V150 \simply\debug\I nteropToManaged .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 "InteropToManag ed.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
InteropToManage d.dll will have access violation.

My coworker rebuild the application at his machine, not copy over.

William DePalo [MVP VC++] wrote:
"B." <gu*******@gmai l.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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\sys tem32\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\w inapp.exe', Symbols
...
'C:\source\V150 \simply\debug\I nteropToManaged .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 "InteropToManag ed.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*******@gmai l.comwrote in message
news:11******** **************@ f16g2000cwb.goo glegroups.com.. .
This is still in the process of loading DLLs, not sure why
InteropToManage d.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\M icrosoft\Window s NT\CurrentVersi on\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
1370
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
1979
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 be to store them as documentation/appinfo elements within the included schema or as unhandled attributes. Because the schemas are included it seems the items would have to be accessed via the SOM (as opposed to retrieving the details via XPATH)...
2
1845
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 unhandled exceptions always. There are not working in some cases.
1
1781
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 informative window pops up giving all the error info i want. How can i get the same behaviour when working inside the IDE thnks in advance *-----------------------* Posted at:
2
1382
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 read or write protected memory. This is often an indication that other memory is corrupt. The debugger does not stop on some code line. So it seems something only in IDE. When I click 'ok' and then F5 the application terminate normally. Also if I...
5
4533
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 method using Application.Run(new MyMainParentForm) to place in the application's Sub Main to allow catching of unhandled exceptions in the application. The problem I'm facing is that I want to be able to trap unhandled exceptions at the MDI child...
1
1526
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 assembly. In 2.0 this comes up as app_web_x213 which is not real helpful. This is probably the dll that asp.net 2.0 compiled the page to. What's the best way to figure out the name of the app that had the exception?
5
3786
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
4454
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, I was nearly 100% sure that I had the "Break on All Errors" selected under error trapping. Now it's set to "Break on Unhandled Errors", which I don't think is a good thing. Case in point: I had a customer e-mail today about an Invoice showing...
4
2907
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) { localhost1.dbConnection dbConn = new localhost1.dbConnection(); NameValueCollection Query = Request.QueryString;
0
8390
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.