[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:30:44 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 15:48:37.000000000 -0500
+++ shadow/77847.tmp.20446 2006-12-17 16:30:44.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 77847
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details:
-Status: REOPENED
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: Unknown
Priority: Minor
Component: System
AssignedTo: robertj at gmx.net
ReportedBy: paul.hudson at gmail.com
QAContact: mono-bugs at ximian.com
@@ -223,6 +223,19 @@
Chris
------- Additional Comments From cmorgan at alum.wpi.edu 2006-12-17 15:48 -------
Created an attachment (id=18319)
Reproduces NullReference exception
+
+------- Additional Comments From robertj at gmx.net 2006-12-17 16:30 -------
+Chris, the test case is invalid.
+
+You're overwriting the timer (which is declared as static)
+each time the constructor is called.
+
+Make the timer and the locker an instance member and it
+should work.
+
+Note that if you use more then 20 timers in parallel you
+have to increase the threadpool. See "man mono", MONO_THREADS_PER_CPU.
+
More information about the mono-bugs
mailing list