[Mono-dev] Multiple domains

Zoltan Varga vargaz at gmail.com
Thu Jun 29 11:24:07 EDT 2006


                             Hi,

  The root domain is the initial domain created by the runtime when it
is initialized using mono_jit_init. Programs will execute in the root
domain, but
can create new ones later. The embedding interface currently has little support
for creating additional domains, your best bet is to do it from managed
code and invoke that code using mono_runtime_invoke.

                Zoltan

On 6/29/06, Janne Rantala <janne.rantala at gmail.com> wrote:
> Hi,
>
> First, could someone specify what root domain exactly means and what is it
> meant for?
>
> Mono project's web site says about mono_jit_init that "That will return a
> MonoDomain where your code will be executed. You can create multiple
> domains. Each domain is isolated from the other domains and code in one
> domain will not interfere with code in other domains."
> But when I tried to initialize mono_jit_init with two different assembly
> names, I got error saying "**ERROR**: file domain.c:line 517
> (mono_init_internal):should not be reached aborting..."
>
> But if I use mono_domain_get to get current domain (is that also root
> domain?)  I can create objects from different assemblies just fine.
>
> Is there some other way to initialize multiple domains?
>
> Thanks for your help,
>
> Janne
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>



More information about the Mono-devel-list mailing list