[Mono-bugs] [Bug 80799][Wis] Changed - Multithreaded App crashes in random locations

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 11 23:34:13 EST 2007

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 robertj at gmx.net.


--- shadow/80799	2007-02-11 23:17:45.000000000 -0500
+++ shadow/80799.tmp.30882	2007-02-11 23:34:13.000000000 -0500
@@ -109,6 +109,18 @@
 you'll see that things start to go slightly better.
 Often I get MemberAccessExceptions from GDI+, which means
 that a GDI+ object that was created in one thread is
 consumed in another thread. I bet there are some static
 shared objects inside SWF.
+------- Additional Comments From robertj at gmx.net  2007-02-11 23:34 -------
+BTW, mono_marshal_get_native_wrapper() uses
+mono_marshal_find_in_cache() which in turn takes the marshal
+lock and lookups the cached wrapper. If is was not in
+cache, it releases the lock and starts generating the
+Of course, 2 threads might be generating the same wrapper at
+the same time, but this doesn't hurt. It's far better than
+having a big lock around mono_marshal_get_native_wrapper().

More information about the mono-bugs mailing list