[Mono-dev] Memleak in mono_domain_unload

Vardar Sahin sakirsoft at gmail.com
Tue Oct 28 10:03:29 UTC 2014


I located the bug in my code for the memleak in mono_domain_unload. In my
application I am loading an assembly and all of its references
via  mono_image_open_from_data and mono_assembly_load_from_full. In this
process I also load mscorelib into the domain. And this causes the memleak.
When I skip to load mscorelib everything works fine and mono does not leak
anything.

2014-10-24 17:03 GMT+02:00 Rodrigo Kumpera <kumpera at gmail.com>:

> Please file a bug report with your test case so we can fix any leaks.
>
>
>
> On Fri, Oct 24, 2014 at 7:56 AM, Vardar Sahin <sakirsoft at gmail.com> wrote:
>
>> Hello to all,
>>
>> I noticed that mono_domain_unload is leaking memory. I wrote a small test
>> in my application
>> where I create a domain, load an assembly into it, execute the C# main
>> which does nothing and then call mono_domain_unload. The assembly and all
>> its references are loaded with mono_image_open_from_data. It seems like
>> Unity somehow solved this problem.
>>
>> Is there any work to fix this? Or any hint for me?
>>
>> Best regards
>> Sahin
>>
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141028/257dbb81/attachment.html>


More information about the Mono-devel-list mailing list