[Mono-dev] Embedded mono crash on exception

Trigve trigves at yahoo.com
Thu Aug 6 06:12:56 UTC 2015


Reposting, as it looks like the message hasn't hit the mailing list

-------------

Hi,
I'm using embedded mono (using unity) in C++ DLL. I'm calling some managed
functions using mono_runtime_invoke(). The function does throw an exception,
which I caught with the MonoException argument. Then I want to unwind stack
(in C++) so I throw my custom exception. But application crashes at address
00000000 (last function on the stack is ExecuteHandler2 at 20()). So it looks
like some exception handler is set pointing to the NULL.

Error message:


Here is a code



Here is a call stack:


This is compiled using Visual Studio 2013 x86 C++ native DLL, runing on
Windows 7 Pro 64bit. Mono version is the one used in Unity 5.1, don't know
the version now.

Anyone knows where could be the problem?

Thanks

Trigve



--
View this message in context: http://mono.1490590.n4.nabble.com/Embedded-mono-crash-on-exception-tp4666414p4666432.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list