[Mono-bugs] [Bug 21042] Changed - Missing MarshalAs support
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
27 Feb 2002 22:59:34 -0000
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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=21042
--- shadow/21042 Wed Feb 27 16:41:23 2002
+++ shadow/21042.tmp.26596 Wed Feb 27 17:59:34 2002
@@ -1,22 +1,22 @@
Bug#: 21042
Product: Mono/MCS
Version: unspecified
OS: other
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: 002 Two hours
Priority: Major
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: miguel@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Summary: Missing parameter names in PInvoke methods.
+Summary: Missing MarshalAs support
This is from Paolo:
Compile any test with a p/invoke method and disassemble the output:
you'll note that, the parameter info table is not filled, so you don't
get the name of the arguments, for example. The problem with marshaling
@@ -41,6 +41,19 @@
The bug should be fixed on CVS. Do you have a sample proggy that I
can use to verify that the things are labeled as you want them?
And what is MarshalAs support in MCS?
Miguel/.
+
+------- Additional Comments From lupus@ximian.com 2002-02-27 17:59 -------
+You may try mono/tests/pinvoke.cs: in the ildasm output you'll note
+that the parameter names are there, while before this change they were
+not output.
+MarshalAs is an attribute that you can set to method parameters and to
+fields: it specifies what system type should be used when marshaling
+the parameter. Supposedly there is a Marshal Specification somewhere
+in the docs. There is some info in the docs for
+System.Runtime.InteropServices.MarshalAsAttribute.
+The compiler needs to support it since it's a special attribute (on
+parameters, for exampl, you need to set the info with
+ParameterBuilder.SetMarshal, I think).