积极答复者
未将对象引用设置到对象的实例

问题
答案
-
-
dear
通常是开发者忘了new一个执行个体
秘訣無它,唯勤而已 http://www.dotblogs.com.tw/yc421206/- 已标记为答案 Dummy yoyoModerator 2011年10月5日 4:46
-
Hi bianchunlei,
欢迎来到MSDN 论坛!
出现NullReferenceException,通常是由于开发者尝试操作某个指向null 的对象 所致。
请您参考以下链接中的信息(它们是英文的):NullReferenceException Class
http://msdn.microsoft.com/en-us/library/system.nullreferenceexception.aspxWhy do I get the error "Object reference not set to an instance of an object"?
http://blogs.msdn.com/b/csharpfaq/archive/2004/05/06/why-do-i-get-the-error-object-reference-not-set-to-an-instance-of-an-object.aspx在Microsoft Visual .NET 2002 标准版和Microsoft Visual C# .NET 2002 标准版中,出现这种情况也有可能是由于产品本身的问题,请参看下面的链接:
FIX:DataGrid 控件的“Object reference not set to an instance of an object”(未将对象引用设置为对象的实例)异常
http://support.microsoft.com/kb/819346#appliesto该问题已经在 Microsoft Visual Studio .NET (2003) 中得到纠正。
一般来说,出现这种问题时,开发者都可以在debug模式下,设置断点来找到问题的根源。
祝,一切顺利!
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Dummy yoyoModerator 2011年9月29日 6:26
- 已标记为答案 Dummy yoyoModerator 2011年10月5日 4:46
全部回复
-
-
dear
通常是开发者忘了new一个执行个体
秘訣無它,唯勤而已 http://www.dotblogs.com.tw/yc421206/- 已标记为答案 Dummy yoyoModerator 2011年10月5日 4:46
-
Hi bianchunlei,
欢迎来到MSDN 论坛!
出现NullReferenceException,通常是由于开发者尝试操作某个指向null 的对象 所致。
请您参考以下链接中的信息(它们是英文的):NullReferenceException Class
http://msdn.microsoft.com/en-us/library/system.nullreferenceexception.aspxWhy do I get the error "Object reference not set to an instance of an object"?
http://blogs.msdn.com/b/csharpfaq/archive/2004/05/06/why-do-i-get-the-error-object-reference-not-set-to-an-instance-of-an-object.aspx在Microsoft Visual .NET 2002 标准版和Microsoft Visual C# .NET 2002 标准版中,出现这种情况也有可能是由于产品本身的问题,请参看下面的链接:
FIX:DataGrid 控件的“Object reference not set to an instance of an object”(未将对象引用设置为对象的实例)异常
http://support.microsoft.com/kb/819346#appliesto该问题已经在 Microsoft Visual Studio .NET (2003) 中得到纠正。
一般来说,出现这种问题时,开发者都可以在debug模式下,设置断点来找到问题的根源。
祝,一切顺利!
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Dummy yoyoModerator 2011年9月29日 6:26
- 已标记为答案 Dummy yoyoModerator 2011年10月5日 4:46