[Mono-bugs] [Bug 78208][Min] New - System.Threading.Timer.Dispose fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 26 09:54:19 EDT 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 pawel.sakowski at mind-breeze.com.


--- shadow/78208	2006-04-26 09:54:18.000000000 -0400
+++ shadow/78208.tmp.10810	2006-04-26 09:54:19.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 78208
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: pawel.sakowski at mind-breeze.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: System.Threading.Timer.Dispose fails
+Description of Problem:
+According to the MSDN entry about IDisposable, "If an object's Dispose
+method is called more than once, the object must ignore all calls after the
+first one." Mono's Timer doesn't conform.
+Steps to reproduce the problem:
+using System.Threading;
+class Test {
+	static void Main() {
+		Timer t = new Timer(Callback);
+		t.Dispose();
+		t.Dispose();
+	}
+	static void Callback(object o) {}
+Actual Results:
+Expected Results:
+silent termination
+How often does this happen? 

More information about the mono-bugs mailing list