![](/img/trans.png)
[英]“Unable to copy file” build error in Visual Studio 2015 WinForms project
[英]Visual Studio 2015 Winforms bug - Error when setting a breakpoint
创建一个WinFrm应用程序 - 将此代码粘贴到按钮单击处理程序并创建一个全局变量bool keepGoing - 在Thread.Sleep(500)上设置一个断点并运行它。 该程序将停止工作,但我不知道为什么。 在Windows 10上使用.NET Framework 4.5.2
bool keepGoing = true;
private void button1_Click(object sender, EventArgs e)
{
Task.Factory.StartNew(()=>
{
while (keepGoing)
{
try
{
Thread.Sleep(500);//set breakpoint here
}
catch (Exception ex)
{
throw;
}
}
});
}
我刚刚更新了Visual Studio现在运行:Microsoft Visual Studio Community 2015版本14.0.24720.00更新1
我很高兴地说这个bug看起来已经修复了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.