直接调试就可以正常运行,但是直接运行(不调试)就会出现错误
我点击调试按钮程序却可以正常运行,但是点击开始执行(不调试)却出现下面的错误
今天我在运行C#程序时,遇到了:值不能为空,参数名:path的错误
详细信息是:System.ArgumentNullException: 值不能为空。
参数名: path
在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
在 System.IO.StreamWriter..ctor(String path)
在 thss.tpcc.utility.MsgConsole.Initialize(ControlCenter cc)
在 thss.tpcc.userInterface.ControlCenter.ControlCenter_Load(Object sender, EventArgs e)
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
希望哪位帮助看看为什么会出这样的错误?
今天我在运行C#程序时,遇到了:值不能为空,参数名:path的错误
详细信息是:System.ArgumentNullException: 值不能为空。
参数名: path
在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
在 System.IO.StreamWriter..ctor(String path)
在 thss.tpcc.utility.MsgConsole.Initialize(ControlCenter cc)
在 thss.tpcc.userInterface.ControlCenter.ControlCenter_Load(Object sender, EventArgs e)
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
希望哪位帮助看看为什么会出这样的错误?
...全文
相关推荐
vs2003运行时,出现.pdb文件错误。
vs2003 .pdb文件错误 空间不足
第8章错误、异常处理与调试.pdf
第8章错误、异常处理与调试.pdf
解决在Python编辑器pycharm中程序run正常debug错误的问题
今天小编就为大家分享一篇解决在Python编辑器pycharm中程序run正常debug错误的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
VS2008 按F5调试运行报无法启动程序错误解决方案
VS2008 按F5调试运行IE报Microsoft Visual Studio无法启动程序“http://localhost:7887/Login.aspx”错误。直接右键“在浏览器中查看”正常,就是不能调试,一调试就抱错。本文为此错误提供了解决方法!
VB常见错误类型和程序调试方法PPT课件.pptx
VB常见错误类型和程序调试方法PPT课件.pptx


