为什么在x64版本上对System.Numerics函数进行断点编辑参数时会出现FatalExecutionEngineError?
c#
在 AnyCPU 或 x86 上,我可以运行这个程序,在 Foo 上设置一个断点,将第一个参数从 0.5f 编辑到 0.6f,然后恢复就好了。但是,在 x64 上,它在恢复时始终因 FatalExecutionEngineError 崩溃。
using System;
using System.Numerics;
public static class Interaction
{
public static void Main(string[] args)
{
while (true)
{
Console.WriteLine(Foo.M11);
System.Threading.Thread.Sleep(0);
}
}
private static Matrix4x4 Foo
{
get
{
return Matrix4x4.CreateFromYawPitchRoll(0.5f /* breakpoint and set this to 0.6f*/, 0.5f, 0.5f);
}
}
}
至少,它发生在 .NET Framework 4.7.2 和 .NET Framework 4.6.2 上。有没有办法解决这个问题?
编辑:在 .NET Framework 4.8 上对其进行了测试,在阅读他们修复了该版本中的一些 x64 内容后,它仍然崩溃!
THE END
二维码