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

zebrajap zebrajap at yahoo.com
Fri Aug 21 04:44:35 UTC 2015


Hi,
As Robert suggested I did the followings.
1. Downloaded mono source tarball
2. Extracted to Ubuntu machine
3. Ran ./autogen.sh to download external dependencies (This machine has
internet)
4. Ran make get-moonlite-latest
5. Copied everything to a Suse Enterprise 11 sp3 machine. This machine does
not have internet connection. But the rest of the source is available only
in this machine due to company policy.
6. Ran make, make install. No errors
7. Compiled and ran my previous code

Now I am getting a different error.

104		MonoObject* pIcc = mono_runtime_invoke(pMethodCreateCompiler,
pCodeProvider, NULL, NULL); 
(gdb) p pMethodCreateCompiler
$1 = (MonoMethod *) 0x6aa288
(gdb) n

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in
Microsoft.CSharp.CSharpCodeProvider:CreateCompiler (): IL_0000: ret       

[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid
IL code in Microsoft.CSharp.CSharpCodeProvider:CreateCompiler (): IL_0000:
ret   

So I opened mono/4.0/System.dll using ILSpy. There, all the methods seems to
have empty body with single instruction.
<http://mono.1490590.n4.nabble.com/file/n4666512/IlSpy.png> 

What could be the issue ?



--
View this message in context: http://mono.1490590.n4.nabble.com/Invoking-net-interface-method-from-c-api-tp4666493p4666512.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list