在C#中未处理ArgumentNulllException [英] ArgumentNulllException was unhandled in C#

查看:283
本文介绍了在C#中未处理ArgumentNulllException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,
我正在尝试在Debug模式下运行应用程序,以查看其是否获得返回值.但是由于ArgumentNullException的困扰,我可以在调试模式下运行该应用程序.有没有一种简单的方法可以找出为什么我的应用程序无法在调试模式下运行的原因,对网络的快速搜索似乎表明它可能是由于一键部署"或核心调试"(?)所致.问题是我想找出一个字符是否出现在内存中.有没有一种方法可以显示串行端口的缓冲区.

Glenn

Hi,
I am trying to run an application in Debug mode, to see if it is getting a return value. But I can run the Application in the debug mode due to an ArgumentNullException which is being a pain. Is there a simple way of finding out why my App wont run in debug mode a quick search of the Net seem to indicate it could either be due to One Click Deployment or Kernal debugging(?).  The problem is I want to find out if a character has appeared in memory or not. Is there a way of getting a display of the buffer of the serial port.

Glenn

推荐答案

只需查看异常的堆栈跟踪哪一行代码导致ArgumentNullException并解决该问题.
Just look at the stacktrace of the exception which line of code is causeing the ArgumentNullException and fix the issue.


这篇关于在C#中未处理ArgumentNulllException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆