[Mono-bugs] [Bug 67039][Nor] Changed - [PATCH] Delegates returned from a PInvoke call are improperly marshalled

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 29 Sep 2004 09:13:31 -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 vargaz@gmail.com.


--- shadow/67039	2004-09-29 01:20:31.000000000 -0400
+++ shadow/67039.tmp.7277	2004-09-29 09:13:31.000000000 -0400
@@ -71,6 +71,15 @@
 when marshalling the delegate_trampoline back to a delegate, should we clone the object; 
 or keep things how we are by just pointing the MonoObject/MonoDelegate to the same 
+------- Additional Comments From vargaz@gmail.com  2004-09-29 09:13 -------
+Some comments:
+- the functionality required is already implemented in 
+  mono_ftnptr_to_delegate, so there is no need to add new functions/
+fields to Delegate. Instead, mono_ftnptr_to_delegate should be modified
+to include the code which is currently in mono_ftn_to_delegate.
+- hash table access needs to be synchronized using marshal_mutex.