简体   繁体   中英

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

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. 依赖行者

Please advice.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM