Solved

VB.Net Thread exited

Posted on 2013-06-27
2
591 Views
Last Modified: 2013-06-27
The following code is inside a While loop which will start from 6 - 12 threads.

                Dim phoneWorkerThread As New Thread(AddressOf startPhoneMonitoring)
                phoneWorkerThread.Start(sendRow)

Each thread runs in a continuous loop.

Once in a while I get a message (in Debug.Write) like this
The thread '<No Name>' (0x1e80) has exited with code 0 (0x0).

I know I can name a thread...but how do I get that message to say something like
The thread 'Process 7 ' (0x1e80) has exited with code 0 (0x0).
0
Comment
Question by:lrbrister
2 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39282200
Changing the name should change it the message:

                Dim phoneWorkerThread As New Thread(AddressOf startPhoneMonitoring)
                phoneWorkerThread.Name = "Process " + i.ToString()  ' i being the loop counter.
                phoneWorkerThread.Start(sendRow)
0
 

Author Closing Comment

by:lrbrister
ID: 39282520
Thanks
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to limit User Input 2 27
Syntax Issue with SSIS module 26 105
SSRS 2016 Rendering HTML tables 3 31
SSIS Start 2 21
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question