[Mono-bugs] [Bug 77847][Min] Changed - [PATCH] "Too many threads" error when starting and stopping a timer repeatedly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Dec 17 16:41:53 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 robertj at gmx.net.

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

--- shadow/77847	2006-12-17 16:37:36.000000000 -0500
+++ shadow/77847.tmp.20833	2006-12-17 16:41:53.000000000 -0500
@@ -247,6 +247,13 @@
 
 ------- Additional Comments From cmorgan at alum.wpi.edu  2006-12-17 16:37 -------
 Just adjusted the test case, still reproduces here and actually does
 so a little bit quicker for me now with less threads.
 
 Chris
+
+------- Additional Comments From robertj at gmx.net  2006-12-17 16:41 -------
+Chris, please ;-) Don't you see what happens?
+You're overwriting the *same* timer instance every
+time the ctor gets called. Please remove the static Timer
+and make it a local variable in the ctor.
+


More information about the mono-bugs mailing list