[Mono-dev] Embedding Mono
Duane Wandless
duane at wandless.net
Thu Mar 10 09:38:34 EST 2011
Sorry... read too fast. It might also be useful to indicate which version
of Mono you are using and on what platform. This is the code that I use on
OSX with Mono 2.6.7 and 2.8.2. Where sampleAssemblyPath is the full path to
the EXE.
MonoDomain *domain;
domain = mono_jit_init ([sampleAssemblyPath UTF8String]);
MonoAssembly *monoAssembly = mono_domain_assembly_open(domain,
[sampleAssemblyPath UTF8String]);
mono_jit_exec (domain, monoAssembly, 1, argv);
On Thu, Mar 10, 2011 at 6:15 AM, vinay_rk <vinay.kashyap at ironmountain.com>wrote:
> Hi Duane,
>
> I agree to the point about the call to mono_jit_exec, but as I have
> mentioned in my previous post I am not able to get to the point of this
> call
> since mono_domain_assembly_open never returns a valid pointer. I always get
> a null pointer from this call. And a non null pointer to MonoAssembly is
> returned if I try to load "mscorlib". Something like this:
>
> assembly = mono_domain_assembly_open (domain, "mscorlib");
>
> Any thoughts ?
>
> Regards
> -Vinay
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Embedding-Mono-tp3345310p3345621.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> 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/20110310/ae38ae51/attachment-0001.html
More information about the Mono-devel-list
mailing list