[Mono-bugs] [Bug 58881][Maj] Changed - [patch] marshalling of struct params to functions passed as unmanaged delegates broken
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 23 May 2004 21:26:57 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58881
--- shadow/58881 2004-05-23 20:17:04.000000000 -0400
+++ shadow/58881.tmp.27560 2004-05-23 21:26:56.000000000 -0400
@@ -10,13 +10,13 @@
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: vladimir@pobox.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Summary: marshalling of struct params to functions passed as unmanaged delegates broken
+Summary: [patch] marshalling of struct params to functions passed as unmanaged delegates broken
Given two code files, t37.c and t37.cs:
=== t37.cs ===
#include <stdio.h>
@@ -95,6 +95,10 @@
Is this a bug in unmanaged -> managed struct ref marshalling?
------- Additional Comments From vladimir@pobox.com 2004-05-23 20:17 -------
Just tried this with the .NET runtime on win32 -- in both cases the
pointer is the same, so this is a mono bug.
+
+------- Additional Comments From vladimir@pobox.com 2004-05-23 21:26 -------
+Attached is a patch; System.ValueType didn't have blittable set, and
+all structs inherited its lack of blittable-ness.