[Mono-bugs] [Bug 77280][Cri] Changed - Mono does not fire events properly from different threads

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 18 18:44:51 EST 2006


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 psingh at fnfr.com.

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

--- shadow/77280	2006-01-18 16:59:00.000000000 -0500
+++ shadow/77280.tmp.18938	2006-01-18 18:44:51.000000000 -0500
@@ -42,6 +42,20 @@
 EventHandler<MyEventArgs>(EventCallback);
 
 Addition of event handlers is not a thread safe operation so it should
 be done inside of a lock. Also, what do you mean by 'not working' ? 
 
 
+
+------- Additional Comments From psingh at fnfr.com  2006-01-18 18:44 -------
+It is thread safe because each one of those objects belongs to one and
+only one thread and each object has its own event queue.
+
+By not working - I mean the following:
+
+If the program creates 5 threads, each one of these threads will
+create a foo object which in turn creates a bar object and calls a
+method on it which generates the event. So there should be 5 event
+messages printed on the console. This is indeed the case on Windows
+and RedHat Enterprise but not on Fedora.
+
+


More information about the mono-bugs mailing list