[Mono-bugs] [Bug 37252][Nor] New - Marshalling Error
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sun, 26 Jan 2003 16:41:09 -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 cbranch@stetson.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=37252
--- shadow/37252 Sun Jan 26 16:41:08 2003
+++ shadow/37252.tmp.30359 Sun Jan 26 16:41:09 2003
@@ -0,0 +1,59 @@
+Bug#: 37252
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 8.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: cbranch@stetson.edu
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Marshalling Error
+
+Description of Problem:
+Warning and fatal error when attempting to Marshal managed to unmanaged
+code in Interop wrapping.
+
+
+Steps to reproduce the problem:
+follow code should run:
+using System.Runtime.InteropServices;
+public class MainApp
+{
+
+ [DllImport("SDL")]
+ public static extern void SDL_WM_SetCaption([MarshalAs
+(UnmanagedType.LPStr)]string name,string icon);
+
+ public static void Main()
+ {
+ SDL_WM_SetCaption("Test","");
+ }
+}
+
+
+Actual Results:
+
+** (Test.exe:17355): WARNING **: marshalling conversion not implemented
+
+** ERROR **: file marshal.c: line 2176 (mono_marshal_get_native_wrapper):
+should not be reached
+aborting...
+Abort (core dumped)
+
+Expected Results:
+
+No Error
+
+
+How often does this happen?
+Every Time
+
+
+Additional Information: