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 [EMAIL PROTECTED]

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

--- shadow/77146        2007-06-12 11:02:39.000000000 -0400
+++ shadow/77146.tmp.31112      2007-06-12 13:01:46.000000000 -0400
@@ -53,6 +53,13 @@
 
 ------- Additional Comments From [EMAIL PROTECTED]  2007-06-12 11:02 -------
 Zoltan, the delegate created by DynamicMethod.CreateDelegate() is
 actually stored in the DynamicMethod instance. They will be collected
 together, isn't it? Or do I miss something?
 
+
+------- Additional Comments From [EMAIL PROTECTED]  2007-06-12 13:01 -------
+No, it is possible for the DynamicMethod to become collected, while the
+delegate lives on since the caller of CreateDelegate still keeps a 
+reference on it. The mono_runtime_free_method () needs to be called when
+the delegate dies, not when the DynamicMethod dies.
+
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to