Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
windows 8.1上的C#ContextBoundObject错误_C#_.net_Runtime Error_Windows 8.1 - Fatal编程技术网

windows 8.1上的C#ContextBoundObject错误

windows 8.1上的C#ContextBoundObject错误,c#,.net,runtime-error,windows-8.1,C#,.net,Runtime Error,Windows 8.1,在Windows 8.1预览版上运行此代码时: using System; using System.Linq; namespace ConsoleApplication { class Program { static void Main(string[] args) { BlaObject p = new BlaObject(); } } public class BlaObject

在Windows 8.1预览版上运行此代码时:

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天)。它在Windows7和Windows8上运行良好


谢谢。

您是否尝试将代码缩减到最小的代码,以显示这种完全奇怪的异常?(在安装windows 8.1之前正在研究它的问题,我对你的问题很好奇)这是最小的崩溃代码。这似乎是一个错误: