[Mono-list] Mono/.NET delegate incompatibility

J. Perkins jason@379.com
18 Dec 2002 15:24:22 -0500


I am using a delegate to pass a function pointer into a unmanaged DLL.
Under Linux/Mono everything works fine. Under Windows/.NET, my callback
function signature must look like this:

  void (__stdcall *func)(int);

But Windows/Mono seems to want:

  void (*func)(int);

Changing the signature will cause the other CLR to corrupt the stack.

Jason
379