This is now bug # 40645 on bugzilla. I got around this by making the modify parameter an IntPtr, and then marshaling it to the test_struct class.

I don't know if this is a feature or a bug, it isn't documented anywhere what's the correct way to pass out objects to pinvoke.


On Tue, 2003-04-01 at 05:24, Pablo Baena wrote:
Finally, I can pass a class to pinvoke as an 'out' parameter. Attached are the samples that runs on .NET, but still won't run on mono.

Cheers!
--
Pablo Baena <[EMAIL PROTECTED]>

Reply via email to