mail-archives/mono-bugs/2004-June/017206.html

81 строка
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 59909][Wis] Changed - passing classes to C library functions doesn't allow modification
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="017205.html">
<LINK REL="Next" HREF="017207.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 59909][Wis] Changed - passing classes to C library functions doesn't allow modification
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 59909][Wis] Changed - passing classes to C library functions doesn't allow modification">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Thu, 10 Jun 2004 23:39:19 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="017205.html">[Mono-bugs] [Bug 59008][Min] Changed - MacOSX assembler is not compatible with --aot output
</A></li>
<LI> Next message: <A HREF="017207.html">[Mono-bugs] [Bug 59979][Cri] New - Structure marshalling calculates the wrong size for the structure
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17206">[ date ]</a>
<a href="thread.html#17206">[ thread ]</a>
<a href="subject.html#17206">[ subject ]</a>
<a href="author.html#17206">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:mathpup@mylinuxisp.com.">mathpup@mylinuxisp.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=59909">http://bugzilla.ximian.com/show_bug.cgi?id=59909</A>
--- shadow/59909 2004-06-10 16:53:07.000000000 -0400
+++ shadow/59909.tmp.24142 2004-06-10 23:39:19.000000000 -0400
@@ -43,6 +43,17 @@
Created an attachment (id=8100)
an example that doesn't work with mcs
------- Additional Comments From <A HREF="mailto:vargaz@freemail.hu">vargaz@freemail.hu</A> 2004-06-10 16:53 -------
-&gt; runtime
+
+------- Additional Comments From <A HREF="mailto:mathpup@mylinuxisp.com">mathpup@mylinuxisp.com</A> 2004-06-10 23:39 -------
+I noticed that inserting an OutAttribute in front of the parameter
+for the P/Invoke declaration works around the problem:
+
+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.
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="017205.html">[Mono-bugs] [Bug 59008][Min] Changed - MacOSX assembler is not compatible with --aot output
</A></li>
<LI> Next message: <A HREF="017207.html">[Mono-bugs] [Bug 59979][Cri] New - Structure marshalling calculates the wrong size for the structure
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17206">[ date ]</a>
<a href="thread.html#17206">[ thread ]</a>
<a href="subject.html#17206">[ subject ]</a>
<a href="author.html#17206">[ author ]</a>
</LI>
</UL>
</body></html>