[Mono-osx] mono_parse_config not working?

Pedro Gutierrez pgutierrez at etsii.upm.es
Tue Jun 26 21:08:02 EDT 2007


I'm trying to embed mono but mono_parse_config is not working as  
expected. According to the mono docs I should do the following:

mono_assembly_setrootdir (libPath);
mono_set_config_dir (etcPath); //
mono_config_parse (NULL);

Before calling mono_jit_init. libPath and etcPath point to:

the above code FAILS on the third line with the following output:
** ERROR **: file loader.c: line 1809 (mono_loader_lock): assertion  
failed: (ret == 0)

If I provide a filename (mono_config_parse ("config");) it will run  
BUT the config file will not be loaded, and msvcrt will not be  
redirected to libc.dylib. Is there any way to find out if the config  
file is being processed? It doesn't matter which filename I use, the  
mono_config_parser will not fail unless I give it a NULL.

I'm working with mono 1.2.4 on a MacBook Pro CD.

Any ideas? Is this a bug or am I doing something wrong? Any known  



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20070627/f188f23b/attachment.html 

More information about the Mono-osx mailing list