[Mono-dev] Embedding Mono
tspink at gmail.com
Tue Mar 22 14:48:47 EDT 2011
On 18 March 2011 10:48, vinay_rk <vinay.kashyap at ironmountain.com> wrote:
> After several tests with Mono Embedding on Mac OSX on returning to Windows,
> I see that the first issue that I started this thread with is still the same
> on windows (Things seem to be fine on Mac). The code I have on windows is as
> MonoDomain *domain;
> MonoAssembly *assembly;
> char *args;
> args = "Test Param";
> domain = mono_jit_init
> assembly = mono_domain_assembly_open (domain,
> if (!assembly)
> mono_jit_exec (domain, assembly,1, args);
> While mono_jit_init gets a valid looking pointer, the
> mono_domain_assembly_open returns a null pointer. Is this because of
> something I did wrong with the mono.lib I' am linking against.. ? I created
> the Mono.lib using the mono.def file and with the command: lib /nologo
> /def:mono.def /out:mono.lib /machine:x86. should I ensure the mono.def file
> is copied in some particular directory amongst the mono framework
> installation (directory structure) ?
> PS: If I try un-commenting the calls to either mono_config_parse or
> mono_set_dirs, then the mono_jit_init crashes without any particular
> This is looking like a complete dead end as of now.. !
> View this message in context: http://mono.1490590.n4.nabble.com/Embedding-Mono-tp3345310p3386882.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
You need to put double backslashes in your path name, as a single
backslash is an escape character, in a string literal.
More information about the Mono-devel-list