unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.65k stars 1.35k forks source link

dotNet binding doesn't work #1999

Open gmgunderground opened 2 months ago

gmgunderground commented 2 months ago

I cant understand the problem, but are two days that I try do run in debug mode the simple example of dotNet binding without success. Every call to native methods generates exception. I'm using Visual Studio 2022, unicorndll is compiled from dev branch using the visual studio promt. No errors during dll generation. The exception is the following Your app has entered a break state, but no code is currently executing that is supported by the selected debug engine (e.g. only native runtime code is executing).

An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in Unknown Module.
External component has thrown an exception.

Can someone confirm? Any suggestion for the resolution?

wtdcode commented 2 months ago

That's weird. I once tested it works. I don't have a dotnet environment at this moment, unfortunately.