[Mono-dev] Mono JIT Init for two different versions
Rodrigo Kumpera
kumpera at gmail.com
Wed May 23 16:26:12 UTC 2012
Loading two runtimes in the same process is not something mono was designed
to. You might encounter all
sort of issues when doing so.
You'll have to call all mono functions using function pointers and hope it
works as expected.
Multiple GCs in the same process will be racy and you might end up getting
all sort of crash deadlocks.
Good luck.
On Tue, May 22, 2012 at 11:27 AM, Dimitri Kirsanoff <
dimitri.kirsanoff at gmail.com> wrote:
>
>
> I want to initialize different mono run time (different version of mono
> like 2.8, 2.11) in a single process.
> One application package is using mono-2.8 run time and other application
> is using mono-2.11 run time.
>
>
> I am trying to initialize mono two times for two different versions, i.e.
> two different versions of the library.
> To try that I found that getting dlsym function pointers from sharedobject
> and calling function pointer to "mono_jit_init" may make it work.
>
> But here scenario seems to be bit different, as I need to initialize mono
> library for two different versions in same process
>
>
> The call hierarchy of call is as following
>
> My_Application
> |
> |
> |
> \/
> libraryInterfaceToMono.so
> |
> |
> |
> \/
> libmono-2.so (alternately for 2.8 and 2.11)
>
>
> Using my application I am initializing monoruntime share objects using
> mono_jit_init for version 2.11, but there is another version 2.8 for that
> another mono_jit_init call is needed.
> For calling mono_jit_init I am using dlsym for mono_jit_init. I want to
> know can I do it for two different versions in one process.
>
> Can I use mno_jit_init call twice so that I can initialize two versions (
> I am using 2.8 and 2.11 ) alternately?
>
>
> Instead of mono_jit_cleanup I am using mono_runtime_unload api as
> mono_jit_cleanup calling from a function is giving me abrupt crashes.
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120523/448a6316/attachment.html>
More information about the Mono-devel-list
mailing list