[Mono-dev] mscorlib.dll not unloaded on windows

Ignas ignas at unity3d.com
Mon Aug 23 11:43:16 EDT 2010

I haven't attached a sample but test scenario is really simple. Init mono,
create child app domain, load assembly, unload domain, cleanup mono, observe
how mscorlib.dll is still loaded (at least on Windows). I can tell that by
looking at Process Explorer utility which shows that mscorlib.dll is still
memory mapped. After every consecutive iteration one more mscorlib.dll is
loaded until process runs out of virtual memory. Which is really bad for our
browser plugin (Unity Web Player).
Is this a known issue? I can make it go away by manually calling
mono_assembly_close() on corlib but not sure if this is safe and at which
point it is safe. Before mono_runtime_cleanup() or after?

View this message in context: http://mono.1490590.n4.nabble.com/mscorlib-dll-not-unloaded-on-windows-tp2335333p2335333.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list