windows 8.1上的C#ContextBoundObject错误
在Windows 8.1预览版上运行此代码时: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
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之前正在研究它的问题,我对你的问题很好奇)这是最小的崩溃代码。这似乎是一个错误: