---
title: "“System.NullReferenceException: 未将对象引用设置到对象的实例”问题"
author: "thinkfeng"
date: "2008-11-10T10:53:00Z"
tags: []
slug: "system-nullreferenceexception"
draft: false
lastmod: "2008-11-10T10:54:53Z"
id: 264953
url: "https://roate.iteye.com/blog/264953"
---

“System.NullReferenceException: 未将对象引用设置到对象的实例”
报这种错误好像是Wiew为空造成的 可以试着将其 

```c++
gcnew
```
 
一下