Re: [Mono-list] mono_runtime_invoke crash

2014-09-24 Thread tbrooks
Jonathan Chambers wrote > See the documentation on using 'mono_jit_exec' at > http://www.mono-project.com/docs/advanced/embedding/ > > Even if you are embedding and just invoking methods in a library, you need > a dummy Main method. Invoking this is the only way to setup some internals > within th

Re: [Mono-list] mono_runtime_invoke crash

2014-09-17 Thread Jonathan Chambers
Hello, See the documentation on using 'mono_jit_exec' at http://www.mono-project.com/docs/advanced/embedding/ Even if you are embedding and just invoking methods in a library, you need a dummy Main method. Invoking this is the only way to setup some internals within the runtime. I can't say this

Re: [Mono-list] mono_runtime_invoke crash

2014-09-14 Thread tbrooks
Robert Jordan wrote > You did not show us how you're initializing the runtime. Much of this code was wrapped in a facade mechanism, here is the initialization code (directories are the build path + "\\lib" and "\\etc") mono_config_parse( NULL ); // Use the standard configuration... mono_set_dirs(

Re: [Mono-list] mono_runtime_invoke crash

2014-09-14 Thread Robert Jordan
On 13.09.2014 22:30, tbrooks wrote: I've broken everything down to an extremely simple test, this crashes for me about every other run with an access violation 0x0C (so a null pointer somewhere in mono_runtime_invoke). It seems related to Console.WriteLine; if it is removed the crashing stops