leavingentropia
14 years agoNew Contributor
Threading bug
Hi,
I wasn't sure where to put this but I found a reproducable bug. When you change the name of the current thread it seems to halt the execution of the profile.
Sample Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace TestABug
{
class Program
{
static void Main(string[] args)
{
Thread.CurrentThread.Name = "Different";
Console.WriteLine("This should write!");
}
}
}
It never makes it to the Console.WriteLine method, it just hangs and does nothing.
Hope this helps,
Sean
I wasn't sure where to put this but I found a reproducable bug. When you change the name of the current thread it seems to halt the execution of the profile.
Sample Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace TestABug
{
class Program
{
static void Main(string[] args)
{
Thread.CurrentThread.Name = "Different";
Console.WriteLine("This should write!");
}
}
}
It never makes it to the Console.WriteLine method, it just hangs and does nothing.
Hope this helps,
Sean