
September 12, 2009 01:49 by
dsandor
So this was a really weird one. The solution is simple but I figured I’d post it in case someone out there was stumped.
Service cannot be started. System.ArgumentException: Delegate to an instance method cannot have null 'this'.
The problem was with this line of code:
readerThread = new Thread(new ThreadStart(worker.DoWork));
I was instantiating a new thread that executes the DoWork instance method of the ‘worker’ object. The problem was that I failed to instantiate the worker object.
395429d0-6cc3-40c6-861e-a771d8a43d4c|0|.0