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 with code " when the
threads name was set to "foo". Now in Visual Studio 2005 the message
always uses the Thread ID instead of the name even when a name is set
to this thread. Do I have to edit any further setting in Visual Studio
to display the thread's name instead of its ID (or both)?
Thanks in advance.
Gunnar 2 2259
Hello Gunnar,
Strange, It's always used Thread.Name, and put Thread <No Name> if name is
not set
Don't u mess anything?
GF> Hello,
GF> I have an application running some threads which all get a name
GF> using
GF> the Name property. In Visual Studio 2003 when a thread exited the
GF> name
GF> is displayed in the "The thread foo has exited with code " when the
GF> threads name was set to "foo". Now in Visual Studio 2005 the message
GF> always uses the Thread ID instead of the name even when a name is
GF> set
GF> to this thread. Do I have to edit any further setting in Visual
GF> Studio
GF> to display the thread's name instead of its ID (or both)?
GF> Thanks in advance.
GF> Gunnar
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Hello,
that's what confuses me, too.
I create the thread as follows:
Thread thThreadname = null;
thThreadname = new Thread(new ThreadStart(thr eadMethod));
thThreadname.Na me = "Threadname ";
thThreadname.St art();
When I pause execution of the application and take a look at the Threads window from Debug -> Windows menu then the
threads all have the name I gave them using the Name property but in the output window it always just says:
The thread 0xf24 has exited with code 0 (0x0).
(for example).
So I don't have any idea where the problem is... :(
Gunnar
Michael Nemtsev wrote: Hello Gunnar,
Strange, It's always used Thread.Name, and put Thread <No Name> if name is not set Don't u mess anything?
GF> Hello, GF> I have an application running some threads which all get a name GF> using GF> the Name property. In Visual Studio 2003 when a thread exited the GF> name GF> is displayed in the "The thread foo has exited with code " when the GF> threads name was set to "foo". Now in Visual Studio 2005 the message GF> always uses the Thread ID instead of the name even when a name is GF> set GF> to this thread. Do I have to edit any further setting in Visual GF> Studio GF> to display the thread's name instead of its ID (or both)? GF> Thanks in advance. GF> Gunnar --- WBR, Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: R. Rajesh Jeba Anbiah |
last post by:
-----------------------------------------------------------------
This is the FAQ thread where the FAQ compilation project goes.
* If you wish to improve the contents, please copy the whole content,
fix it and then post it. When posting, please change the revision
number (increase by 1) in the subject line.
* If you want to comment, do it without changing the subject line.
* Do NOT add new question and answers here. Add here *only* after...
|
by: Janwillem Borleffs |
last post by:
-----------------------------------------------------------------
This is the FAQ thread where the FAQ compilation project goes.
* If you wish to improve the contents, please copy the whole content,
fix it and then post it. When posting, please change the revision
number (increase by 1) in the subject line.
* If you want to comment, do it without changing the subject line.
* Do NOT add new question and answers here. Add here only after...
|
by: Ivan |
last post by:
Hi
I have following problem: I'm creating two threads who are performing some
tasks. When one thread finished I would like to restart her again (e.g. new
job). Following example demonstrates that. Problem is that when program is
started many threads are created (see output section), when only two should
be running at any time. Can you please help me to identify me where the
problem is?
Best regards
|
by: Xarky |
last post by:
Hi,
I have a window, where for a certain event(button click), I am
starting a new thread. This thread is retrieving data, creating a new
window and displaying it.
The window is being shown by "name.Show();". As the window is being
opened, it is being closed immediately. I know that I can use the
ShowDialog() method, but that would block the execution of the other
thread till the other terminates.
|
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
multithreading into my app, I would guess this means there is some
somewhere.
Can anyone offer some insight into this message?
| |
by: seb |
last post by:
Hi,
I am using pygtk for the first times.
I am wondering what would be the best "pattern" to interface pygtk with
a thread.
The thread is collecting informations (over the network for example) or
is doing some long calculations.
|
by: ryan1234 |
last post by:
My ultimate goal is to get something like "ping.exe" to re-direct it's
standardOutput in real time to an .aspx page.
I've been able to get this behavior to work just fine in a regular
console application. I execute the process and the output is re-
directed to a windows textbox.
Below is the code I'm using to do that:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
|
by: =?Utf-8?B?cmFuZHkxMjAw?= |
last post by:
I have an application with several BackgroundWorker threads. I hoped I'd be
able to just type backgroundworker1.Name = "bw1"; but I don't see a name
property.
Any thoughts on how to name a backgroundworker thread?
Thanks,
Randy
|
by: franzbrown |
last post by:
Most of the threads I am using in my C# application have names
(Thread.Name = ).
When I am debugging my application within VS 2005, I have a UI to stop
my application and the threads it started.
In the VS 2005 output window I was expecting to see thread names
within each thread exit line, but I am not seeing any.
For example, I am seeing lines similar to this one
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |