[Mono-bugs] [Bug 29486][Nor] New - P/Invoke automatic marshaller will creat thunks for null function pointers.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
27 Aug 2002 01:42:50 -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 miguel@ximian.com.

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

--- shadow/29486	Mon Aug 26 21:42:50 2002
+++ shadow/29486.tmp.962	Mon Aug 26 21:42:50 2002
@@ -0,0 +1,24 @@
+Bug#: 29486
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+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: P/Invoke automatic marshaller will creat thunks for null function pointers.
+
+If a delegate is null, the runtime will still create a thunk and call it.
+
+This breaks code that takes callbacks, and does things like:
+
+if (func != null)
+    (*func) (...)