Hello,
I'm new to the realm of .NET application creation, so please forgive
my ignorance.
I have been tasked with debugging a problem that arises with using a
DLL that contains managed and unmanaged code in concert with a managed
application that makes calls to the DLL. This problem has been
cropping up for a while, but the debugger provides very little
information (from what I can tell) as to what exactly is the problem.
During application load, I get a dialog before getting into main:
First-chance exception at 0x7c812a5b in FormatConvertor d.exe:
Microsoft C++ exception: HRException at memory location 0x0012e74c..
The break shows up here:
mcrtexe.cpp:323
if defined (_MANAGED_MAIN)
__set_managed_a pp_type();
mainret = main(arguments) ;
#else /* defined (_MANAGED_MAIN) */
If I ignore, I get a couple more dialogs with worsening messages
before the application quits:
First-chance exception at 0x7c812a5b in FormatConvertor d.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7c98eafa in FormatConvertor d.exe:
0xC0000025: Windows cannot continue from this exception.
A first chance exception of type
'System.Runtime .InteropService s.SEHException' occurred in
FormatConvertor d.exe Additional information: External component has
thrown an exception.
I scoured Google for similar text, but only found a handful of
articles with the same text as mine. I have _no idea_ a) what type of
exeception this is
b) where exaclty in the code this is being triggered (as it's before
main, and the call stack doesn't have a lot of places to break into)
c) how to debug this and find out what's causing the problem.
I know this is vague, but I'm guessing it has something to do with
adding the DLL into my managed application, and not setting up
something correctly in the manifest/dependencies/build settings??
I'm really out on a limb, and would be grateful for any insight anyone
has. Also, please forgive if this is the not the best newsgroup for
this type of problem. If so, I'd be much obliged if someone could
point me to a better newsgroup.
Thanks!!
Here is the console text:
'FormatConverto rd.exe': Loaded 'D:\Bin\FormatC onvertord.exe', Symbols
loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\ntdll.dll ', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\mscoree.d ll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\kernel32. dll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\advapi32. dll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\rpcrt4.dl l', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Win SxS
\x86_Microsoft. VC80.DebugCRT_1 fc8b3b9a1e18e3b _8.0.50727.762_ x-
ww_5490cd9f\msv cr80d.dll', Symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\msvcrt.dl l', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Win SxS
\x86_Microsoft. VC80.DebugCRT_1 fc8b3b9a1e18e3b _8.0.50727.762_ x-
ww_5490cd9f\msv cp80d.dll', Symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\user32.dl l', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\gdi32.dll ', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\ole32.dll ', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\shlwapi.d ll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\d3d9.dll' , No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\d3d8thk.d ll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\version.d ll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\winmm.dll ', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\d3dx9_33. dll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\comdlg32. dll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\comctl32. dll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\shell32.d ll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Win SxS
\x86_Microsoft. VC80.DebugCRT_1 fc8b3b9a1e18e3b _8.0.50727.762_ x-
ww_5490cd9f\msv cm80d.dll', Symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\imm32.dll ', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\lpk.dll', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\usp10.dll ', No
symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Win SxS
\x86_Microsoft. Windows.Common-
Controls_6595b6 4144ccf1df_6.0. 2600.2982_x-ww_ac3f9c03\com ctl32.dll',
No symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\msc orwks.dll', No symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Win SxS
\x86_Microsoft. VC80.CRT_1fc8b3 b9a1e18e3b_8.0. 50727.762_x-
ww_6b128700\msv cr80.dll', Symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\Cul ture.dll', No symbols loaded.
'FormatConverto rd.exe': Unloaded 'C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\Cul ture.dll'
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\ass embly
\NativeImages_v 2.0.50727_32\ms corlib\31bae188 08fa8d45ad26959 f0c9bfd5f
\mscorlib.ni.dl l', No symbols loaded.
'FormatConverto rd.exe' (Managed): Loaded 'C:\WINDOWS\ass embly
\GAC_32\mscorli b\2.0.0.0__b77a 5c561934e089\ms corlib.dll', No symbols
loaded.
'FormatConverto rd.exe' (Managed): Loaded 'd:\p4_dc01666_ UZURA\Program
\Suite102\Bin\F ormatConvertord .exe', Symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\msc orjit.dll', No symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\Mic rosoft.NET\Fram ework
\v2.0.50727\dia symreader.dll', No symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\sys tem32\rsaenh.dl l', No
symbols loaded.
'FormatConverto rd.exe' (Managed): Loaded 'C:\WINDOWS\Win SxS
\x86_Microsoft. VC80.DebugCRT_1 fc8b3b9a1e18e3b _8.0.50727.762_ x-
ww_5490cd9f\msv cm80d.dll', Symbols loaded.
'FormatConverto rd.exe': Loaded 'C:\WINDOWS\ass embly
\NativeImages_v 2.0.50727_32\Sy stem
\c78e3732b90739 46b6f8e816d9b1a c85\System.ni.d ll', No symbols loaded.
'FormatConverto rd.exe' (Managed): Loaded 'C:\WINDOWS\ass embly\GAC_MSIL
\System\2.0.0.0 __b77a5c561934e 089\System.dll' , No symbols loaded.
'FormatConverto rd.exe': Loaded 'D:\Bin\FormatC onvertorDllDebu g.dll',
Symbols loaded.
'FormatConverto rd.exe': Unloaded 'D:\Bin\FormatC onvertorDllDebu g.dll'
First-chance exception at 0x7c812a5b in FormatConvertor d.exe:
Microsoft C++ exception: HRException at memory location 0x0012e74c..
C:\WINDOWS\syst em32\d3dx9_33.d ll: No symbols loaded.
C:\WINDOWS\syst em32\d3dx9_33.d ll: No symbols loaded.
C:\WINDOWS\syst em32\d3dx9_33.d ll: No symbols loaded.
First-chance exception at 0x7c812a5b in FormatConvertor d.exe:
Microsoft C++ exception: [rethrow] at memory location 0x00000000..
First-chance exception at 0x7c98eafa in FormatConvertor d.exe:
0xC0000025: Windows cannot continue from this exception.
First-chance exception at 0x7c98eafa in FormatConvertor d.exe:
0xC0000025: Windows cannot continue from this exception.
First-chance exception at 0x7c98eafa in FormatConvertor d.exe:
0xC0000025: Windows cannot continue from this exception.
A first chance exception of type
'System.Runtime .InteropService s.SEHException' occurred in
FormatConvertor d.exe
Additional information: External component has thrown an exception.
An unhandled exception of type
'System.Runtime .InteropService s.SEHException' occurred in
FormatConvertor d.exe
Additional information: External component has thrown an exception.
The thread 'Win32 Thread' (0xc7c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x968) has exited with code 0 (0x0).
The program '[3788] FormatConvertor d.exe: Managed' has exited with
code 0 (0x0).
The program '[3788] FormatConvertor d.exe: Native' has exited with code
0 (0x0).
<< cross-posted to dotnet.framewor k, sorry >>