[Mono-bugs] [Bug 43687][Nor] New - void * in P/Invoke signature causes runtime to abort.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 26 May 2003 20:04:29 -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 miguel@ximian.com.

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

--- shadow/43687	Mon May 26 20:04:29 2003
+++ shadow/43687.tmp.12000	Mon May 26 20:04:29 2003
@@ -0,0 +1,33 @@
+Bug#: 43687
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: void * in P/Invoke signature causes runtime to abort.
+
+The following program makes the runtime abort while compiling the method:
+
+using System;
+using System.Runtime.InteropServices;
+
+unsafe class X {
+	[DllImport ("libc")]
+	static extern void system(void *a);
+
+	static void Main () {
+		system (null);
+	}
+}
+
+Seen in Mphoto.