I am learning how to use the Mono embedding API, and I have run into an issue with loading assemblies that I cannot seem to get past. My goal is to be able to take advantage of the $MONO_PATH environment variable when loading assemblies into application domains, but as far as I can tell, the suggested function call, mono_domain_assembly_open(), ignores $MONO_PATH completely. After tracing through the code a few times, I found that mono_assembly_load() searches $MONO_PATH, and I can load my test assembly using that function. However, I cannot figure out how to add the newly loaded assembly to my application domain.
My question basically boils down to this: is it valid for me to use mono_assembly_load() instead of mono_domain_assembly_open(), and if so, how do I add the loaded assembly to an application domain? If it is not a good idea for my code to call mono_assembly_load(), should I emulate the relevant calls in mono/metadata/assembly.c so that my code searches $MONO_PATH prior to each call to mono_domain_assembly_open()? -Patrick -- Patrick L. Hartling | Research Assistant, VRAC [EMAIL PROTECTED] | 2274 Howe Hall Room 2624 http://www.vrac.iastate.edu/~patrick/ | http://www.vrac.iastate.edu/ PGP: http://wwwkeys.gpg.cz:11371/pks/lookup?op=get&search=0xEBF86398
signature.asc
Description: This is a digitally signed message part
