Windows 8.1上的C#ContextBoundObject错误

时间:2013-08-05 19:52:28

标签: c# .net runtime-error windows-8.1

在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.

有什么想法吗?这段代码一直运行到今天(我有大约3-4天的8.1)。它在Windows 7和Windows 7上运行良好。 8。

感谢。

0 个答案:

没有答案