I have a VB.NET console application that uses a System.Timers.Timer and monitors a folder using a System.IO.FileSystemWatcher. The timer works fine but stops after having run 25 times or 50 on a multi processor server. This suggests to me that it is hitting the maximum number of threads and then giving up. I'm don't really know anything about multi-threading applications and haven't coded this as multi-threaded but I do use System.Threading.Thread.Sleep to get the app to pause in several places.
I have also tried swapping the timer to use the System.Threading.Timer but I get the same issue of it stopping after 25 goes.
Anyone out there that can help me sort out me timers?