[Mono-dev] Crash when throwing exceptions after unloading domains

Robert Jordan robertj at gmx.net
Wed Jul 4 18:31:24 EDT 2007


Joachim Ante wrote:
> Hi,
> 
> I am getting a crash when throwing exceptions after unloading a domain.
> 
> I have tried debugging the issue but to no avail, but i managed to  
> create a small sample that shows the issue.
> http://bugzilla.ximian.com/show_bug.cgi?id=82007
> 
> There are a couple of weird things about it, for example if i run the  
> code that throws / catches the exception before unloading the domain  
> one time. And one time after unloading the domain, the crash goes away.

Instinctively I'd say it crashes because you're calling mono_jit_exec ()
twice. Try mono_runtime_exec_main () instead.

Robert




More information about the Mono-devel-list mailing list