[Mono-list] structure marshalling problems redux

J. Perkins jason@379.com
Thu, 12 Sep 2002 09:45:28 -0400


Okay, I've made a little time to code up an example of the
marshalling problems that I am seeing in Mono 0.15. This zip
includes the source for the tests, VS7 project files for .NET,
and a makefile for gcc/mcs. I've tested on W2K with .NET and
RH7.3 with Mono 0.15. It works on .NET, fails with Mono.

This code runs two tests. The first test passes a structure of
function pointers from C# to C. Under Mono, the function ptrs end
up as NULLs on the C side. The second test creates a simple
structure in C, and then passes it via a callback/delegate to C#.
In Mono, I get garbage data on the C# side.

The zip is here: http://www.379.com/download/marshal.zip

I've also added a link to bug #29256. I will keep the file online
until the bug is closed.

(Kudos to the mono developers - this is great stuff. I'm not even
supposed to be working on a Linux port, but I can't resist...)

Jason
379