[Mono-bugs] [Bug 66915][Maj] Changed - Calling back on a delegate passed to native code through p/invoke on a different thread causes a crash.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 5 Oct 2004 15:03: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.
http://bugzilla.ximian.com/show_bug.cgi?id=66915
--- shadow/66915 2004-09-27 20:15:57.000000000 -0400
+++ shadow/66915.tmp.23917 2004-10-05 15:03:31.000000000 -0400
@@ -54,6 +54,11 @@
------- Additional Comments From daniel_l_christensen@yahoo.com 2004-09-27 20:15 -------
The native API should not need to be linked against the mono embedding
API (required to call mono_thread_attach) in order for me to consume
it's functionality through p/invoke in managed code. Although it would
be easy enough to do in the simple example that I provided, that is
not necessarily the case when consuming a published API.
+
+------- Additional Comments From vargaz@gmail.com 2004-10-05 15:03 -------
+The problem with automatically registering threads with the runtime is
+that nobody unregisters them, so the per-thread data structures
+allocated by the runtime are leaked.