Re: [Mono-dev] bug #28777

2015-08-21 Thread Rodrigo Kumpera
No timeline for 4.0.5. It might be a community only release.
Mono 4.2.0 has already been branched and an alpha release is happening in
the coming weeks.

--
Rodrigo


On Mon, Aug 17, 2015 at 11:28 AM, Stephen G. Parry 
wrote:

> When are either 4.2 or 4.0.5 due to be fully live?
>
>
> On 17/08/15 14:44, Rodrigo Kumpera wrote:
>
> The fix will be part of mono 4.2.0.
>
> We could later backport it to mono 4.0.5 if 4.2 is not an option.
>
> --
> Rodrigo
>
>
> On Sat, Aug 15, 2015 at 10:59 AM, Stephen G. Parry  > wrote:
>
>> Hi All,
>> We have what looks like a reversion of bug #28777
>> (https://bugzilla.xamarin.com/show_bug.cgi?id=28777). This is causing
>> KeePass to fail when saving compressed files whilst running on
>> 4.0.3.20-0xamarin1. The same problem was reported by the community as
>> fixed in 4.0.1.44-1 arch linux, although whether that was downstream
>> patch or not I'm not sure. Either way, it is currently broken in the
>> 'stable' version. The bug is marked as fixed in 4.3 trunk. Please can we
>> have a backport / re-fix? This is causing serious grief for those of us
>> who need a recent mono runtime for keepass, e.g. to get ssl support
>> working via ca-certificates-mono.
>> Thanks
>> Stephen Parry
>>
>> ___
>> Mono-devel-list mailing list
>> Mono-devel-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


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

2015-08-21 Thread Robert Jordan

On 21.08.2015 11:43, zebrajap wrote:

Oh. I got your point.

The build output have System.dll in multiple places.

./lib/mono/2.0/System.dll
./lib/mono/4.5/System.dll
*./lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll*
./lib/mono/4.0/System.dll

I was loading it from ./lib/mono/4.0/System.dll. I am loading it as follows.

mono_set_dirs("/lib", "/etc");
pDomain = mono_jit_init_version("BuildDomain", "v4.0.30319" ); // Init 
the
JIT Engine
mono_config_parse(NULL);

MonoAssembly* pSystemAssembly = mono_domain_assembly_open (pDomain, 
"/lib/mono/4.0/System.dll");
pSystemImage = mono_assembly_get_image (pSystemAssembly);

The file in gac seems to have the implementation.
How to make it load from gac without providing absolute path? Please note
that I cannot install it here.



Use one of the mono_assembly_load_*() functions because they
are obeying the usual CLR assembly binding rules (those rules C#
programmers are used to).


A good start is mono_assembly_load_with_partial_name () which
can be as simple as:

MonoImageOpenStatus status;
asm = mono_assembly_load_with_partial_name("System", &status);

Robert


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


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

2015-08-21 Thread zebrajap
Oh. I got your point.

The build output have System.dll in multiple places.

./lib/mono/2.0/System.dll
./lib/mono/4.5/System.dll
*./lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll*
./lib/mono/4.0/System.dll

I was loading it from ./lib/mono/4.0/System.dll. I am loading it as follows.

mono_set_dirs("/lib", "/etc");
pDomain = mono_jit_init_version("BuildDomain", "v4.0.30319" ); // Init 
the
JIT Engine 
mono_config_parse(NULL);

MonoAssembly* pSystemAssembly = mono_domain_assembly_open (pDomain, 
"/lib/mono/4.0/System.dll");
pSystemImage = mono_assembly_get_image (pSystemAssembly);

The file in gac seems to have the implementation.
How to make it load from gac without providing absolute path? Please note
that I cannot install it here.

Thanks for all the help so far.



--
View this message in context: 
http://mono.1490590.n4.nabble.com/Invoking-net-interface-method-from-c-api-tp4666493p4666514.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


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

2015-08-21 Thread Robert Jordan

On 21.08.2015 06:44, zebrajap wrote:

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_: ret

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

So I opened mono/4.0/System.dll using ILSpy. There, all the methods seems to
have empty body with single instruction.


What could be the issue ?



It looks like you are tying to execute a reference assembly.
These are stripped off of method bodies.

How do you load System.dll?

Robert


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list