473,503 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to name a thread?

In form_load(), I do this
Thread.CurrentThread.Name = "MainThread"

However, in the debugger thread window, I see:

<No Name> appname.Classname.Form1_load Normal 0

Why does it still have <No Name>? Which name is that?

Thanks,
Brett
Nov 21 '05 #1
1 1024
April 7, 2005

I believe this is happening, because the line with <No Name> gets written
Before your code runs. I think that the line is written as it Starts
Form_Load and Not after the code in form_load has run. Just a theory. Good
luck!
Joseph MCAD

"Brett" wrote:
In form_load(), I do this
Thread.CurrentThread.Name = "MainThread"

However, in the debugger thread window, I see:

<No Name> appname.Classname.Form1_load Normal 0

Why does it still have <No Name>? Which name is that?

Thanks,
Brett

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
11335
by: TheKeith | last post by:
I heard that the name attribute is deprecated in html 4.01 strict. Is it recommended that you use the ID attribute for images along with the getElementById method instead of the old way? Thanks.
2
9743
by: Tony Liu | last post by:
Hi, I want to get the name of the calling function of an executing function, I use the StackTrace class to do this and it seems working. However, does anyone think that there any side effect...
1
16906
by: Tomas Vera | last post by:
Hello All, In an effort to prepare my WebApp for localization, I have included the following lines in some of my ASPX pages (the "lab mice" of my web app). --- Code snippet -----...
5
6007
by: Droopy Toon | last post by:
Hi, I am using asynchronous socket (BeginAccept for example). I tried to name each thread I am using but threads created by asynchronous Socket functions (like BeginAccept) creates "anonymous"...
12
9107
by: magister | last post by:
Hello, I know I can set the Culture to what I want, but shouldn't the current culture be taken from the regional settings on the web server's control panel!!! Mine is set to "united kingdom"...
13
5054
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
2
2249
by: Gunnar_Frenzel | last post by:
Hello, I have an application running some threads which all get a name using the Name property. In Visual Studio 2003 when a thread exited the name is displayed in the "The thread foo has exited...
4
7789
by: Charlie Brown | last post by:
The thread '<No Name>' (0xedc) has exited with code 0 (0x0) While debugging appplications, I often see this message popup in the VS output window. Although I havent specifically written any...
7
2663
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
4
1688
by: tshad | last post by:
I have an executable that has a button that I want to change the name of to "Now Processing...". When the process is done, I want to change it back. The problem is that the form is not showing...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.