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.kash...@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@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list >
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list