[Mono-list] mono_jit_init and mono_jit_cleanup

Jb Evain jb at nurv.fr
Sat Apr 18 15:58:53 EDT 2009


Hey,

On 4/18/09, fozzie <david_aiken at yahoo.com> wrote:
> I see.. so this means i can only call mono_jit_init(file) once? Or is there
>  another way to initialize the runtime then run multiple files? Suppose i
>  want to run them in separate domains? If there is a reference you can point
>  me to it would be appreciated so that i can read further and stop bugging
>  you.

Heh, you're not bugging anyone. As Rodrigo say, you should only call
mono_jit_init once, then it should only be a matter of running the
appropriate entry point method of each assembly.

I suggest you do as much as possible in the managed code, but if you
absolutely need to do things in the unmanaged side, you can read how
we do it in Moonlight here:

http://anonsvn.mono-project.com/viewvc/trunk/moon/src/deployment.cpp?revision=HEAD&content-type=text%2Fplain

Some functions are pretty new for creating domains in the unmanaged,
you may need a recent Mono if you can't do it in the managed side.

--
Jb Evain  <jb at nurv.fr>


More information about the Mono-list mailing list