[Mono-dev] mono_fntptr_to_delegate

2014-08-08 Thread Bruno Lauze
Hi, I am sure someone can help me out. At one point this code did work. I changed something and/or I just reinstalled latest trunk and it broke. I am trying to pass C delegate to C#. Everything is working C# is calling back the method but the parameters seems to be invalid pointers. The C

Re: [Mono-dev] mono_fntptr_to_delegate

2014-08-08 Thread Robert Jordan
Bruno, Marshal.GetDelegateFromFunctionPointer() and mono_ftnptr_to_delegate only work on functions with p/invoke-compatible signatures. This means that you can't pass MonoObjects* to these functions. You can only declare and pass p/invoke-compatible arguments. There is also no *this* pointer