[Mono-list] GLib Critical Error at attemting to embed Mono (and other minor troubles).

Lucyberad Lucyberad at gmail.com
Mon Aug 24 09:21:45 EDT 2009



Robert Jordan wrote:
> 
> Lucyberad wrote:
>> I've made some further test. This time on Unix system (fresh install with
>> mono --version producing 2.4.2.3).
>> After checking my helloworld.exe is launching well (which is the case),
>> updating all path: mono_set_dirs("/usr/etc", "usr/lib") and my const
>> char*
>> file.
> 
> It's mono_set_dirs (libdir, etcdir), so the correct invocation is
> 
> 	mono_set_dirs("/usr/lib", "/usr/etc");
> 
> Also, you've forgot the slash in front of "usr/lib".
> 
> Robert
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

Oops, i've made an error while copy it into this forum the mono_set_dir is
well set to: mono_set_dirs("/usr/lib", "/usr/etc"), sorry.

I've look further and now I found an answer to most of question I had.
First: the relative path works. I can't tell why it did'nt worked before.
I made many test and the only one I see is compiling with an error while
writing "helloworld.exe"... I did it like 5 times and I can't imagine I made
an error while writing "helloworld.exe" 5 times. The file is contains no
error: it's named helloworld.exe (I don't change him until start).
Second: the absolute path is not available for Glib and explain the
following line: "GLib-CRITICAL **: g_path_is_absolute: assertion `file_name
!= NULL' failed"
The absolute path is working because a copy/paste in explorer lead
sucessfully at launching helloworld.exe.

So my problem is solved and I cannot really determine why it failed in my
previous attempt to get it working.

Whatever, thanks for helping and taking times to help me (to help us).
Lucyberad.
-- 
View this message in context: http://www.nabble.com/GLib-Critical-Error-at-attemting-to-embed-Mono-%28and-other-minor-troubles%29.-tp25093790p25116007.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list