[Mono-dev] Infinite recursion (mcs 1.2.3.1 vs Microsoft csc)

2007-05-12 Thread D M
Hi, If I compile the OnUpdate method with mcs, I get an infinite recursion due to the compiler generating a callvirt instead of call. The Microsoft compiler doesn't have the same issue. Note that if I just have a virtual method Print1, both mcs and csc generate the same code (call instance

[Mono-dev] Infinite recursion (mcs 1.2.3.1 vs Microsoft csc)

2007-05-07 Thread D M
Hi, If I compile the OnUpdate method with mcs, I get an infinite recursion due to the compiler generating a callvirt instead of call. The Microsoft compiler doesn't have the same issue. Note that if I just have a virtual method Print1, both mcs and csc generate the same code (call instance

Re: [Mono-dev] ARM PInvoke issue when using long

2006-11-14 Thread D M
This seems to work.Thanks a lot,DanPaolo Molaro <[EMAIL PROTECTED]> wrote: On 11/14/06 D M wrote:> I think the issue is with the mini-arm.c add_general (guint *gr, guint *stack_size, ArgInfo *ainfo, gboolean simple) function.> It doesn't work properly for MONO_TYPE_I8/MONO_TY

Re: [Mono-dev] ARM PInvoke issue when using long

2006-11-14 Thread D M
I think the issue is with the mini-arm.c add_general (guint *gr, guint *stack_size, ArgInfo *ainfo, gboolean simple) function.It doesn't work properly for MONO_TYPE_I8/MONO_TYPE_R8 if just the first half fits in one register and the other on the stack.mono_arch_create_trampoline seems to handle thi

Re: [Mono-dev] ARM PInvoke issue when using long

2006-11-10 Thread D M
Hi,I don't really want to add the extra parameters to get around this issue.Does anybody know if this is gonna get fixed and when ?Thanks,DanD M <[EMAIL PROTECTED]> wrote: Yes, that seems to work.DanBill Seurer <[EMAIL PROTECTED]> wrote: I am not familiar with ARM but I had to change a setting in o

Re: [Mono-dev] ARM PInvoke issue when using long

2006-11-08 Thread D M
Yes, that seems to work.DanBill Seurer <[EMAIL PROTECTED]> wrote: I am not familiar with ARM but I had to change a setting in order to getthe JIT to use the right registers for long longs on power on AIX. Somearchitectures require that things too long to fit in a register be passedstarting in only

[Mono-dev] ARM PInvoke issue when using long

2006-11-07 Thread D M
Hi,It seems there is an issue with mono PInvoke on a 32 bit ARM platform.If I have a native method declared as:[DllImport("MyDll")]static extern long Test1(int n1, long n2, long n3, int n4, long n5);extern "C"long long Test1(int n1, long long n2, long long n3, int n4, long long n5){    printf("Test

[Mono-dev] ARM exceptions

2006-11-06 Thread D M
Hi,I'm having some issues with the exceptions raised from native code on an ARM platform.I'm using mono-1.1.18.20061027.Running this under ARM leads to:  Unhandled Exception: System.InvalidOperationException: boom.   at ExceptionBug.MyClass.MyMethod (Boolean flag) [0x0]   at <0x0>