[Mono-list] mono_runtime_invoke not catching exceptions?

Robert Jordan robertj at gmx.net
Tue Feb 21 20:43:13 UTC 2012


On 21.02.2012 18:36, efontana wrote:
> I'm using Embedded mono, I created a small test program who's method I can
> call and as a test
> I had that method do a throw new Exception("Catch this in C++");
>
> I passed in a MonoObject* exception = NULL; as the last argument to
>
> mono_runtime_invoke, the method returns, however exception is still NULL.
> it's not being caught?
>
> Am I missing something,

I can't reproduce it with an official build or with a cygwin-compiled
Mono. Are you building Mono with Visual Studio?

Robert



More information about the Mono-list mailing list