在 Windows 8.1 Preview 上运行此代码时:
using System;
using System.Linq;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
BlaObject p = new BlaObject();
}
}
public class BlaObject : ContextBoundObject
{
private readonly decimal decimalFactor = 10000;
public BlaObject()
{
}
}
}
我收到以下错误:
AccessViolationException was unhandled
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
有任何想法吗?这段代码运行正常,直到今天(我有 8.1 大约 3-4 天)。它在 Windows 7 和 8 上运行良好。
谢谢。