Good Tip for C# Threading in Windows Service
C#
1
Posts
1
Posters
0
Views
1
Watching
-
using System.Threading; Thread myThread = new Thread(new ThreadStart(_listener.Prepare)); myThread.Start();
The
Start
call onmyThread
is quite important. Without it, the thread doesn't start, and no amount of debug code in the 'Prepare' method will get called and you look a complete arse when you ask a colleague for help. If you call Start on your thread, your thread starts and everything is really good. It's gonna be one of those weeks.Knowledge is hereditary, it will find its way up or down. - Luc Pattyn
so you answer don't be scared of failure The only failure is never to try Things You've Never Done - Passenger -2008