[Mono-list] crash in mono_jit_cleanup

Robert Jordan robertj at gmx.net
Sun Nov 17 22:05:38 UTC 2013


On 16.11.2013 17:26, jonathan at mugginsoft.com wrote:
> My work around is to not call mono_jit_cleanup() at all.
>
> I terminate Mono when I terminate my app so I presume that nothing untoward can occur.

If your app is depending on finalizers being executed at shutdown,
then in place of mono_jit_cleanup() you should call a managed method
that triggers a collection as a workaround:

GC.Collect ();
GC.WaitForPendingFinalizers();

Robert




More information about the Mono-list mailing list