After executing the following code in .NET 2.0:
Thread t = new Thread(new ThreadStart(delegate
{
Debug.WriteLine("Test");
}));
t.Name = "TestThread";
t.Start();
I still get that the thread has no name. The debug output is:
Test
The thread '<No Name>' (0x164c) has exited with code 0 (0x0).
What am I doing wrong? Is there a bug in 2.0 regarding thread names or
is there something else I need to do as well?
--
Lasse Vågsæther Karlsen
mailto:lasse@vkarlsen.no