The next straightforward periodic timer (which should run ad-infinitum) stops immediately after 61 runs. The same is true if I switch to .FromMinutes(10) :
static void Main(string[] args) { var timerEvery5 = new Timer( new TimerCallback((o) => Console.WriteLine("5-minutes handler launched at {0}", DateTime.Now.ToString("yyyy-MM-dd HH:mm"))), null, new TimeSpan(0),
I tried this on several 64-bit Windows 8 systems with .Net 4.5. The program compiles and runs from the shell. Is this a mistake or am I missing something?
source share