[Mono-bugs] [Bug 58731][Nor] Changed - Marshaling for delegate params of delegates is missing

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 26 May 2004 12:24:21 -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 mkestner@ximian.com.

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

--- shadow/58731	2004-05-26 10:50:44.000000000 -0400
+++ shadow/58731.tmp.15224	2004-05-26 12:24:21.000000000 -0400
@@ -55,6 +55,15 @@
 
 ------- Additional Comments From vargaz@freemail.hu  2004-05-26 10:50 -------
 This is implemented now, but the test will not run since the function
 pointer which is passed to the delegate must come from the managed side,
 it can't be the address of a random C function.
 
+
+------- Additional Comments From mkestner@ximian.com  2004-05-26 12:24 -------
+If it can't marshal any random C function pointer, it's probably
+better to just throw the assert.  Admittedly the use case for this is
+rare, but when it's done, I suspect it will almost always be passing a
+non-managed fptr.
+
+I was able to work around this problem in the Gtk.Container.OnForall
+case by adding glue, BTW.