[Mono-list] mono_jit_init abort

Ruud v A mono at veniogames.com
Sun Mar 14 09:25:08 EDT 2010


I have a class 'scripting_manager'.
In this class a MonoDomain* is declared like this: MonoDomain* _mono_domain;

In the constructor of scripting_manager I do this:

mono_set_dirs("mono/lib", "mono/etc");
_mono_domain = mono_jit_init("VenioEngineManaged.dll");

Note that setting the dirs or not does not make a difference. I copied the
lib and etc folders to a folder called 'mono' which is in the same directory
as the executable. The mono dll is also in this directory.

1 I am building a static library as debug. I include dependencies in the lib
file. Then I include this library in a dynamic library, and I also include
dependencies here. Finally I include that DLL in my executable. There is no
need to reference mono in my executable as it is automatically included from
the other libraries.

2 Windows 7 64-bit, but I am compiling as 32-bit (for now).

3 I tried a source version I built myself (as debug), not from svn but form
the site, the latest change in the cangelog of this version is 2010-02-18. I
also tried the DLL from my mono installation, version 2.6.1. 

4 MS Visual C++ 2008

Note that everything compiles fine, the executable loads the mono dll
(either of them) fine, and everything works until the mono_jit_init call.

-----
Venit, ut me occideret.
-- 
View this message in context: http://n4.nabble.com/mono-jit-init-abort-tp1592267p1592436.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list