Update with Dick's comments
[mono.git] / docs / embedded-api
index f943b8ffbf95780379b2a28ffd39095e75a0b927..f658eb28e03df260b50cc5ab323711a1bfae312c 100644 (file)
@@ -55,7 +55,7 @@
 
                MonoAssembly *assembly;
 
-               assembly = mono_domain_assembly_open ("file.dll");
+               assembly = mono_domain_assembly_open (domain, "file.dll");
                if (!assembly)
                        error ();
 
        It may not be possible to manage exceptions in that case,
        though. I need to think more about it.
 
+** Threading issues
+
+       If your application creates threads on its own, and you want them to 
+       be able to call code into the CIL universe with Mono, you have to
+       register the thread with Mono before issuing the call.
+
+       To do so, call the mono_thread_attach() function before you execute
+       any managed code from the thread
+
 * Samples
 
        See the sample programs inmono/sample/embed for examples of