[Mono-bugs] [Bug 71352][Nor] New - Marshal of unicode strings in structs not implemented

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 17 Jan 2005 05:42:54 -0500 (EST)


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 jordi@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=71352

--- shadow/71352	2005-01-17 05:42:54.000000000 -0500
+++ shadow/71352.tmp.18372	2005-01-17 05:42:54.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 71352
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jordi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Marshal of unicode strings in structs not implemented
+
+When using this struct with marshalled attributes:
+
+private struct WNDCLASS {
+			internal int		style;
+			internal WndProc	lpfnWndProc;
+			internal int		cbClsExtra;
+			internal int		cbWndExtra;
+			internal IntPtr		hInstance;
+			internal IntPtr		hIcon;
+			internal IntPtr		hCursor;
+			internal IntPtr		hbrBackground;
+			[MarshalAs(UnmanagedType.LPWStr)]
+			internal string		lpszMenuName;
+			[MarshalAs(UnmanagedType.LPWStr)]
+			internal string		lpszClassName;
+		}
+
+You get the following error with Mono runtime:
+
+** (swf-combobox-simple.exe:936): WARNING **: marshaling conversion 6 not
+implem ented
+
+and a MessageBox that says:
+
+* ERROR *: file marshal.c line 991 (emit_ptr_to_str_conv): should not be
+reached
+
+Looking at the code, the marshaling is not implemted yet. 
+
+Jordi,