Need in understanding Exception at runtime in C++/CLI project execution

1

I am using Code from here, it is a simple code that allows Managed C# class to be used inside a C++ project with CLI bridge. And I am trying to get this working for my testing. But I get this exception :

Unhandled exception at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000). occurred

Exception thrown at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000). Exception thrown at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000). Exception thrown at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000). Exception thrown at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000). Exception thrown at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000). Unhandled exception at 0x00007FFDAA264008 (KernelBase.dll) in Test.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000).

I tried dependency walker, for the test.exe and I couldn't find any tangible problems except some API-MS-WIN-CORE* dlls missing. It did say one module has an unresolved import due to missing export function , but where do I find this ? It also says 1 circular dependency detected and one not found.

See the attached picture. Dependency Walker

Please advice.

c#
c++
interop
managed
asked on Stack Overflow Apr 6, 2018 by Syed Alam Abbas • edited Jun 20, 2020 by Community

2 Answers

0

It appears that your program is passing null into parameters 2,3,4 on a function at memory location 0xE0434352. Hence the:

0xE0434352 (parameters: 0xFFFFFFFF80131509, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFD798F0000).

My guess is that the function 0xE0434352 is not expecting null parameters at these locations. I would double check all your culls into the various functions that set up this dll to make sure that nothing is null or not defined.

answered on Stack Overflow Apr 6, 2018 by chasester
0

It appears that I should have enabled the CLR exceptions to see that it was Unable to resolve host exception from the .NET side. This was happening since this service has been discontinued by Yahoo Has Yahoo suddenly today terminated its finance download API? .

Whew, I could not have figured this out with out all the helpful pointers. Thanks guys, I am marking this resolved.

answered on Stack Overflow Apr 6, 2018 by Syed Alam Abbas

User contributions licensed under CC BY-SA 3.0