Re: [Mono-list] Interop - PreserveSig

2015-10-04 Thread Robert Jordan
On 04.10.2015 00:25, lx42 wrote: So my question is, does mono respect PreserveSig? DllImportAttribute.PreserveSig = false is not supported. However, methods of COM interfaces do have "PreserveSig = false" semantics by default, unless they were marked with

Re: [Mono-list] Interop - PreserveSig

2015-10-04 Thread lx42
Thanks for confirming. -- View this message in context: http://mono.1490590.n4.nabble.com/Interop-PreserveSig-tp482p488.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist -

[Mono-list] Interop - PreserveSig

2015-10-03 Thread lx42
I have something like below from the managed side: [DllImport("MyTest", PreserveSig=false)] public static extern void Test3(); On the native side it looks like: HRESULT Test3() { return E_ABORT; } However when calling it, I am not getting an exception like what