Re: [Mono-dev] Patch for 'thiscall' call convention on windows

2007-01-11 Thread Argiris Kirtzidis
m, it may be a bit unnecessary. Argiris - Original Message - From: "Paolo Molaro" <[EMAIL PROTECTED]> To: Sent: Thursday, January 11, 2007 10:53 AM Subject: Re: [Mono-dev] Patch for 'thiscall' call convention on windows > On 01/10/07 Argiris Kirtzidis wrote: >> I

Re: [Mono-dev] Patch for 'thiscall' call convention on windows

2007-01-11 Thread Argiris Kirtzidis
Hi all, Just to make things clear, the contribution that I posted (http://lists.ximian.com/pipermail/mono-devel-list/2007-January/022036.html) is being done under the MIT X11 license. Argiris ___ Mono-devel-list mailing list Mono-devel-list@lists.xi

Re: [Mono-dev] thiscall calling convention

2007-01-11 Thread Argiris Kirtzidis
- Original Message - From: "Paolo Molaro" <[EMAIL PROTECTED]> To: Sent: Thursday, January 11, 2007 2:27 AM Subject: Re: [Mono-dev] thiscall calling convention > On 01/10/07 Argiris Kirtzidis wrote: >> Are there plans to implement the 'thiscall' callin

[Mono-dev] Patch for 'thiscall' call convention on windows

2007-01-10 Thread Argiris Kirtzidis
Hi, I have attached a patch to 'mono/mini/mini-x86.c' that allows Mono JIT to handle ThisCall convention on windows.correctly. This allows for interop/pinvoke with visual c++ compiled classes/methods. (For GCC cygwin/mingw 'Cdecl' should be used) The changes are in effect only on the x86 Window

[Mono-dev] thiscall calling convention

2007-01-10 Thread Argiris Kirtzidis
Hi all, Are there plans to implement the 'thiscall' calling convention (first parameter on ECX, the rest on stack) in Mono (for interop, P/Invoke, etc with native windows libraries) ?___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com htt

Re: [Mono-dev] (IL) Fault handlers not working

2007-01-06 Thread Argiris Kirtzidis
> Microsoft (R) .NET Framework IL Assembler. Version 1.1.4322.2032 > Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. > Assembling 'f.il' , no listing file, to EXE --> 'f.EXE' > Source file is ANSI > > f.il(8) : error : syntax error at token '{' in:{ > > > * FAILURE *

Re: [Mono-dev] (IL) Fault handlers not working

2007-01-06 Thread Argiris Kirtzidis
> My mistake, the bug is our ilasm. That code should not compile (it > does not with MS ilasm). I apologise for dragging this so much but the sample compiles with MS ilasm too (at least for me). In fact, to be more specific, I initially compiled it with MS ilasm and tried Mono's ilasm too afte

Re: [Mono-dev] (IL) Fault handlers not working

2007-01-06 Thread Argiris Kirtzidis
> Possibly. You would have to file a bug with a test case that compiles > (your sample is not complete). > Can you be more specific ? I'm using Mono's ILasm and it compiles fine.. Just for reference, this is the sample again: .assembly Test { } .assembly extern mscorlib { } .method public

[Mono-dev] (IL) Fault handlers not working

2007-01-06 Thread Argiris Kirtzidis
Hi all, I have this IL sample: .assembly Test { } .assembly extern mscorlib { } .method public static void Main() { .entrypoint .try { newobj instance void [mscorlib]System.Exception::.ctor() throw leave.s exitTry } fault { ldstr "Fault handler executed"

[Mono-dev] __arglist and P/Invoke

2006-12-31 Thread Argiris Kirtzidis
Hi, Mono isn't able to handle __arglist in a P/Invoke signature. For example, the following program (which calls 'printf' of the the standard C library) is working fine with MS.NET. using System.Runtime.InteropServices; class Program { [DllImport("msvcrt.dll")] public static extern voi

Re: [Mono-dev] Registering internal calls at runtime

2006-12-30 Thread Argiris Kirtzidis
"Robert Jordan" <[EMAIL PROTECTED]> To: Sent: Saturday, December 30, 2006 9:14 AM Subject: Re: [Mono-dev] Registering internal calls at runtime > Argiris Kirtzidis wrote: >> Hi all, >> >> I'm using the Mono embedding API, and noticed that if I call >>

[Mono-dev] Registering internal calls at runtime

2006-12-30 Thread Argiris Kirtzidis
Hi all, I'm using the Mono embedding API, and noticed that if I call 'mono_add_internal_call' after the managed program started execution (with 'mono_jit_exec'), the internal call doesn't get registered and a MissingMethodException is thrown when the managed code tries to call it. Is there a w

Re: [Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Argiris Kirtzidis
On 12/05/06 Paolo Molaro wrote: I> terating the TypeDef table and calling mono_class_get () is the way to > go (I posted mostly the same sample code to a mono list a while ago). Is there any chance an iterator function (like the 'mono_class_get_methods') gets added to the embedding API, so that

Re: [Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Argiris Kirtzidis
because we skip the special type */ for (i = 1; i < rows; ++i) { klass = mono_class_get (image, (i + 1) | MONO_TOKEN_TYPE_DEF); printf ("Class name: %s.%s\n", mono_class_get_namespace (klass), mono_class_get_name (klass)); } } Argiris On 12/5/06, Argiris Kirt

[Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Argiris Kirtzidis
Hi all, Is there a way to get all the classes/types defined in a image using the embedding API ? I looked through all the functions and I can't find one that will allow iteration of all the classes, am I missing something ? How one would get a list of the classes that a mono image contains usin

[Mono-dev] How to get best performance out of the embed API ?

2006-09-11 Thread Argiris Kirtzidis
Hi to all,   I'm new to Mono, coming from the microsoft .NET world. I recently got hooked into Mono and am trying to get Mono embedded in a native code 3D engine.   I am under the impression that the embedding API methods (mono_runtime_invoke, etc.) are the equivelant of the System.Reflection