P
paul.driegen
Hi all,
Hopefully some gurus here can offer some insight into possible causes
of this problem..or at least point me in the right direction as to how
to solve it.
Consider:
_transmitThread = new Thread(new ThreadStart(TransmitLoop));
_transmitThread.Priority = ThreadPriority.Normal;
_transmitThread.Name = "Client Transmitter Loop";
_transmitThread.Start();
All seems well..right? the thing is..the TransmitLoop() function is
never executed.. it's never even started. If I check the IsAlive
property of _transmitThread later on in the program execution in the
app's main thread, the value is false.
No exception is raised, the assembly runs fine..except the worker
function is never called.
Even more troubling is that this code snippet belongs to a client
application that is deployed on ~15 servers in a network. The problem
outlined above only occurs on 2 of the servers. The remaining machines
execute the assembly correctly, the TransmitLoop() thread is running
just fine.
Has anyone ever anything something like this? Any ideas on how to find
the cause of the problem? Like I mentioned, I can't debug it because it
works fine in a debug environment, as well as most of the production
enviroments.
I suspect that some exception must be thrown deep in the framework
somewhere that is raised on a thread that isn't hooked to my code..but
I don't know how to catch it..if I can at all?
Any help / insight you could provide would be much appreciated.
Thanks,
Paul.
Hopefully some gurus here can offer some insight into possible causes
of this problem..or at least point me in the right direction as to how
to solve it.
Consider:
_transmitThread = new Thread(new ThreadStart(TransmitLoop));
_transmitThread.Priority = ThreadPriority.Normal;
_transmitThread.Name = "Client Transmitter Loop";
_transmitThread.Start();
All seems well..right? the thing is..the TransmitLoop() function is
never executed.. it's never even started. If I check the IsAlive
property of _transmitThread later on in the program execution in the
app's main thread, the value is false.
No exception is raised, the assembly runs fine..except the worker
function is never called.
Even more troubling is that this code snippet belongs to a client
application that is deployed on ~15 servers in a network. The problem
outlined above only occurs on 2 of the servers. The remaining machines
execute the assembly correctly, the TransmitLoop() thread is running
just fine.
Has anyone ever anything something like this? Any ideas on how to find
the cause of the problem? Like I mentioned, I can't debug it because it
works fine in a debug environment, as well as most of the production
enviroments.
I suspect that some exception must be thrown deep in the framework
somewhere that is raised on a thread that isn't hooked to my code..but
I don't know how to catch it..if I can at all?
Any help / insight you could provide would be much appreciated.
Thanks,
Paul.