Mat*_*ias 11 .net c# access-violation visual-studio-2013
我想我在Visual Studio 2013 Update 2的调试器中发现了一个错误.当我从一个抽象类派生并覆盖一个接受带有两个字符串的结构的抽象方法时,调试会话崩溃并发生AccessViolationException.
此行为在64位体系结构和.NET Framework 4.0及更高版本(4.5和4.5.1)上出现.
重现步骤:
现在我的问题:
感谢您的时间.
码:
using System;
using System.Collections.Generic;
using System.Text;
namespace test
{
class Program
{
static void Main(string[] args)
{
Structure structure = new Structure();
Caller caller = new Caller();
caller.Execute(structure);
}
}
public abstract class Father
{
internal Father()
{
}
public abstract bool Execute(Structure structure);
}
public class Caller : Father
{
public Caller() : base()
{
}
public override bool Execute(Structure structure)
{
return true;
}
}
public struct Structure
{
public string A;
public string B;
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
315 次 |
| 最近记录: |