[Mono-list] Help with embedded mono: mono_runtime_object_init
Robert Jordan
robertj at gmx.net
Tue Feb 24 23:09:48 UTC 2015
On 24.02.2015 18:19, mimi wrote:
> Hi Rod,
>
> Did you manage to fix the problem? I made some research and it seems to be
> fixed already (https://bugzilla.xamarin.com/show_bug.cgi?id=12541). In that
> link, it marks PC Linux. I got the same problem here on os x 10.8.5 and
> can't figure out why. Any idea? Thanks in advance!
Your issue is probably unrelated to this bxc bug.
You're initializing the runtime with mono_jit_init("Domain"), but you're
supposed to pass the file name of the start assembly in place
of the string "Domain". Otherwise, the runtime will be initialized with
a corlib version that might not match the version requested by
your start assembly.
If you're unable to invoke mono_jit_init on an actual file,
use mono_jit_init_version ("Domain", "v4.0.30319") instead.
This will initialize the 4.5 runtime which is probably what
you want anyway.
Robert
More information about the Mono-list
mailing list