[Mono-bugs] [Bug 48065][Wis] New - marshaling type MONO_TYPE_CHAR(03) not implemented
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 31 Aug 2003 19:18:20 -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 pigolkine@gmx.de.
http://bugzilla.ximian.com/show_bug.cgi?id=48065
--- shadow/48065 2003-08-31 19:18:20.000000000 -0400
+++ shadow/48065.tmp.20088 2003-08-31 19:18:20.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 48065
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: pigolkine@gmx.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: marshaling type MONO_TYPE_CHAR(03) not implemented
+
+Description of Problem:
+Structures with field of type char cannot be marshaled.
+
+Steps to reproduce the problem:
+1. Compile the program:
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace M {
+[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
+public struct AStruct {
+ internal char achar;
+}
+
+public class C {
+
+ [DllImport ("mono",
+ CallingConvention = CallingConvention.StdCall,
+ CharSet = CharSet.Ansi)]
+ internal static extern void mono_main ( ref AStruct param );
+
+ public static void Main()
+ {
+ AStruct p = new AStruct ();
+ mono_main (ref p);
+ }
+}
+}
+
+2. Run it
+
+Actual Results:
+$ mono char_marshal.exe
+
+** (char_marshal.exe:12670): WARNING **: marshaling type 03 not implemented
+
+** ERROR **: file marshal.c: line 956 (emit_struct_conv): should not be reached
+aborting...
+Aborted
+
+
+Expected Results:
+
+Some sort of exception thrown.
+
+How often does this happen?
+Always.
+
+Additional Information:
+Will help to run WebMatrix.