troubleshooting Question

Threading.Thread exit code

Avatar of Larry Brister
Larry BristerFlag for United States of America asked on
Visual Basic.NET.NET ProgrammingMicrosoft Development
2 Comments1 Solution487 ViewsLast Modified:
I have the code below in a While loop that is starting a series of threads.

I can see in the Debug.Write window if a particular thread exits.

Ho do I capture that as a string when  "If phWorkerThread Exits?"

The thread 'Thread 11 | [5611112222]' (0x1454) has exited with code 0 (0x0).


Dim phoneWorkerThread As New Threading.Thread(AddressOf startPhoneMonitoring)
phoneWorkerThread.Name = "Thread " + CStr(threadCounter) + " | [" + dataRowString + "]"
phoneWorkerThread.Start(sendRow)

Open in new window

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros