Re: [Mono-dev] Invoking .net interface method from c api

2015-08-19 Thread zebrajap
Thanks for the help. I tried your suggestion but still it does not work. 92 MonoMethodDesc* pMethodDescCreateCompiler = mono_method_desc_new(System.CodeDom.Compiler.CodeDomProvider:CreateCompiler(), false); (gdb) n 93 MonoMethod* pMethodCreateCompiler =

Re: [Mono-dev] Invoking .net interface method from c api

2015-08-19 Thread zebrajap
Thanks Robert. It still does not work. Was it working in your case ? Now I begin to wonder if there are any issues with my system -- View this message in context: http://mono.1490590.n4.nabble.com/Invoking-net-interface-method-from-c-api-tp4666493p4666497.html Sent from the Mono - Dev mailing

[Mono-dev] MonoJitInfo question

2015-08-19 Thread Neale Ferguson
In MonoJitInfo there is a union: union { MonoMethod *method; MonoImage *image; gpointer aot_info; gpointer tramp_info; } d; How do I know which thing to dereference against? There is a field is_trampoline which

Re: [Mono-dev] MonoJitInfo question

2015-08-19 Thread Zoltan Varga
Hi, method is valid if is_async is FALSE. aot_info is valid if is_async is TRUE. image is an internal field, its used internally by the MonoJitInfo code. Zoltan On Wed, Aug 19, 2015 at 1:33 PM, Neale Ferguson ne...@sinenomine.net wrote: In MonoJitInfo there is a union:

[Mono-dev] Invoking .net interface method from c api

2015-08-19 Thread zebrajap
I am trying to compile a source from c API of mono. Please see my code below. //System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); MonoClass* pCompilerParamsClass = mono_class_from_name (pSystemImage, System.CodeDom.Compiler, CompilerParameters);

Re: [Mono-dev] Invoking .net interface method from c api

2015-08-19 Thread Robert Jordan
On 19.08.2015 08:39, zebrajap wrote: This code fails at MonoObject* pIcc = mono_runtime_invoke(pMethodCreateCompiler, pCodeProvider, NULL, NULL); line. What am I doing wrong. You're supposed to call mono_object_get_virtual_method () on the interface method prior to invoking it on a derived