[Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Jonathan Shore
Hi, I ran across a perplexing error when calling a C# method in one of my assemblies from C++: System.MissingMethodException: Method not found: 'System.Type.op_Equality'. Searching google, it seems that the MonoTouch folks encounter this as well and the explanation is that MT is not

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Zoltan Varga
Hi, Note that I am not initializing mono_domain_assembly_open() with an exe, rather with a dll. Perhaps there is some setup I need to do? The dll is probably compiled against an older net version, causing the runtime to load an older mscorlib. Zoltan

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Robert Jordan
On 04.11.2011 19:32, Jonathan Shore wrote: Note that I am not initializing mono_domain_assembly_open() with an exe, rather with a dll. Perhaps there is some setup I need to do? How are you initializing the runtime exactly (code)? You probably need mono_jit_init_version() or alternatively

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Jonathan Shore
My assembly is definitely 4.0 and monodis --assemblyref indicates dependency on .NET 4 assemblies. I'll look into mono_jit_init_version() and see whether this helps. AssemblyRef Table 1: Version=4.0.0.0 Name=System Flags=0x Public Key: 0x: B7 7A 5C 56

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Robert Jordan
On 04.11.2011 20:05, Jonathan Shore wrote: My assembly is definitely 4.0 and monodis --assemblyref indicates dependency on .NET 4 assemblies. I'll look into mono_jit_init_version() and see whether this helps. Yes, but you're not using it for initialization. // create AppDomain

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Jonathan Shore
I'm working off of http://www.mono-project.com/Embedding_Mono with regard to initialization. I tried a number of possible version #s for the mono_jit_init_version(), but indicated: WARNING: The runtime version supported by this application is unavailable. Using default runtime: v2.0.50727

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Jonathan Shore
Thanks all. I solved it by passing the bootstrap assembly into mono_jit_init (). Did not realize this call could take a path to an assembly. On Nov 4, 2011, at 3:13 PM, Robert Jordan wrote: On 04.11.2011 20:05, Jonathan Shore wrote: My assembly is definitely 4.0 and monodis --assemblyref

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Robert Jordan
On 04.11.2011 20:22, Jonathan Shore wrote: I'm working off of http://www.mono-project.com/Embedding_Mono with regard to initialization. I tried a number of possible version #s for the mono_jit_init_version(), but indicated: WARNING: The runtime version supported by this application is

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Jonathan Shore
I'm working on a mapping between R (the statistical language) and C#, so that R can reference and call methods in C# assemblies. R has an implementation for Java and C, but lacks one for C#. On Nov 4, 2011, at 3:44 PM, Slide wrote: Might I ask what you are using embedding for? I've been