I have a windows service that creates a monitor thread which in turn
creates 4 worker threads. Each thread is based upon a derived class
(HL7Listener) of the TcpListener class. When running this service on
my workstation I have no problems whatsoever. I then deployed this to
another server and cannot open any of the sockets. Troubleshooting
this issue I've discovered that the 4 threads do successfully enter
the HL7Listener constructor. Unfortunately the method called from
ThreadStart never gets executed. My monitor thread checks the status
of each worker thread every 10 seconds and the threadstate for each
thread is set to running temporarily.
I'm totally baffled and frustrated. This is my first attempt at
multi-threading. My logic is based upon solid examples. Again,
everything works fine on my workstation.
I've set each thread principal to the WindowsPrincipal and am writing
to the event log within the various methods to determine exactly where
my problem might lie. I'm catching every possible exception and
nothing is being thrown.
please help!