[Mono-dev] reloading mono domain or assemblies

marcus julius marcusjls at yahoo.com
Mon Aug 16 08:31:15 EDT 2010


Hi Lucas,

>you can use mono_domain_create() and mono_domain_unload() just fine from 
>c.  In fact, I suspect it's actually
>easier to do from native code these days.  basically what you should do is:

>create domain
>set it active
>load your assemblies
>run your code

>when you want to reload code,

>unload the domain
>load your assemblies again
>run your code.

I actually found similar reply from you in another discussion 
and I am using this solution. 

However, I have a problem with one of the DLLs. I cannot delete it
because there are internal calls registered (mono_add_internal_call) 
from that DLL. I cannot delete that DLL even after unloading the domain.

I don't think it is related to loading an assembly from the disk instead
of memory because other DLL that does not have any method registered 
with mono can be deleted after unloading the domain.

Do you have any idea how to solve this?

Thanks.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100816/6301b683/attachment-0001.html 


More information about the Mono-devel-list mailing list