[Mono-bugs] [Bug 59909][Nor] Changed - passing classes to C library functions doesn't allow modification
Fri, 27 Aug 2004 20:46:43 -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 email@example.com.
--- shadow/59909 2004-06-13 11:47:22.000000000 -0400
+++ shadow/59909.tmp.23224 2004-08-27 20:46:43.000000000 -0400
@@ -54,6 +54,12 @@
private static extern void testfn([Out] RefInt i)
So the mechanism for copying the data back from the temporary copy in
unmanaged storage to the managed class is there. It just isn't being
used without the OutAttribute.
+------- Additional Comments From firstname.lastname@example.org 2004-08-27 20:46 -------
+The problem is that by default, reference types which are passed by
+value which are blittable are passed with a pointer. IE, what happens
+is that the unmanaged code gets a referenc to ((char*)o) + sizeof