I’m trying the Unicorn emulator library (v2.0.1). There is a wrapper for C# using .NET (6.0+) and a sample program. I’m trying that sample program in Visual Studio Community Edition.
When I run the sample program, it gets to the Unicorn.EmuStart()
call for the emulator. When that executes, I see it output the first two expected instructions but then the program exits with a non-zero code without progressing.
What I don’t see is any error from the emulator or an exception. I have no idea what is going wrong and I don’t know how I can debug it. EmuStart()
doesn’t seem to return anything. Shouldn’t the C# program continue even if there is an error during the interop call?
I tried putting the call in a try/catch
block but that had no effect.
Can anyone help me figure out how to debug this?
JustMKnot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.