[Mono-bugs] [Bug 342640] [Regression] System.Threading.Timer leaks thread handles...

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 19 04:39:22 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=342640#c1





--- Comment #1 from Paolo Molaro <lupus at novell.com>  2007-11-19 02:39:21 MST ---
A saner, compilable testcase.

using System;
using System.Threading;

class MainClass {
        public static void Main(string[] args) {
                Timer tmr = new Timer(tmr_cb, null, Timeout.Infinite, 1000);
                tmr.Change(0, 1000);
                Console.ReadLine ();
        }

        private static void tmr_cb(object state) {
                Console.WriteLine("hello");
        }
}

The timer can be just 1 second for the bug to show up.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list