[Mono-devel-list] Embedding mono

Joe Ante joe at uti.is
Wed Jun 23 12:30:38 EDT 2004


I am in the process of switching our game engine's scripting language from
python to mono. We have an game toolkit with a text editor that lets us
change the script. Then immediately see the results in the game.
At the moment I am compiling all my scripts into one assembly.

When a script is changed I serialize all scripts, compile all the scripts
into one assembly, call mono_domain_assembly_open to open the domain, create
all the script representations again and load the serialized state in again.

This was all very easy and straightforward to do.

Now I would like to:

1) Unload the old assembly. Is that possible? Which function should I use?

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.

Joachim Ante

Ps. I am really impressed by the code quality of mono. You guys are amazing. 

More information about the Mono-devel-list mailing list