[Mono-dev] Invoking .net interface method from c api
zebrajap
zebrajap at yahoo.com
Wed Aug 19 11:16:20 UTC 2015
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 = mono_method_desc_search_in_class
(pMethodDescCreateCompiler, pCSharpCodeProviderClass);
(gdb) n
94 pMethodCreateCompiler = mono_object_get_virtual_method(pCodeProvider,
pMethodCreateCompiler);
(gdb) n
95 MonoObject* pIcc = mono_runtime_invoke(pMethodCreateCompiler,
pCodeProvider, NULL, NULL);
(gdb) p pMethodCreateCompiler
$1 = (MonoMethod *) 0x688810
(gdb) p pCodeProvider
$2 = (MonoObject *) 0x7ffff7f3ffc0
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff726bbc7 in ?? () from libmono.so.0
--
View this message in context: http://mono.1490590.n4.nabble.com/Invoking-net-interface-method-from-c-api-tp4666493p4666495.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list