[Mono-list] Embedding mono

Paolo Molaro lupus@ximian.com
Thu, 24 Jun 2004 00:06:41 +0200


On 06/22/04 Joe Ante wrote:
> Now I would like to:
> 1) Unload the old assembly. Is that possible? Which function should I use?

You can't unload assemblies per-se: you need to create an appdomain,
load the assembly there and when you're done unload the whole appdomain.
Note that currently there isn't a good API for doing this from C code
and assembly unloading is not yet completely stable in mono.

> 2) I would like to be able to load the assembly from memory if that is
> somehow possible without too much work. I tried using
> mono_image_open_from_data but that crashed the app so I assume I am not
> supposed to *just* call that function.

It's supposed to work, while I tested it only a long time ago.
Please provide more details (better if in a bug report in bugzilla).
Thanks.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better