
March 29th, 2005, 04:22 PM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 2
Time spent in forums: 1 h 29 sec
Reputation Power: 0
|
|
|
Determining thread ID from inside a vb.net thread?
Hi all,
I'm trying to get some logging working on a multi-threaded socket server in VB.net. I create several threads of a single procedure using the system.threading class, and am looking for a way to capture the thread number when writing to my log for easier tracking of transactions, as I receive up to then requests at a time with it, processing them all at the same time.
Is there a way to, from within the main procedure of the class that's being instantiated into several threads, to capture what the thread number or ID is? I've fiddled around with system.threading and can't seem to track down a property that contains that. Am I overlooking something?
Thanks in advance.
|