[Mono-list] mono_runtime_invoke not catching exceptions?

Robert Jordan robertj at gmx.net
Tue Feb 21 21:08:58 UTC 2012


On 21.02.2012 21:47, efontana wrote:
> Nope, I downloaded the MSI installer, didn't build it, got it from here:
>
> http://www.go-mono.com/mono-downloads/download.html
>
> I have more info now though:
>
> The assembly that I'm loading is Windows Forms .exe, if, I throw the
> exception in Form_Load, it's not caught.
>
> If I throw the exception in the Program's static Main() I *Do* see the
> exception.
>
> Is this the intended behavior?

It could be this nasty behavior:

http://blog.paulbetts.org/index.php/2010/07/20/the-case-of-the-disappearing-onload-exception-user-mode-callback-exceptions-in-x64/

Robert







More information about the Mono-list mailing list