直接调试就可以正常运行,但是直接运行(不调试)就会出现错误

zhouzhouqiang_com zhouzhouqiang_com 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我点击调试按钮程序却可以正常运行,但是点击开始执行(不调试)却出现下面的错误

今天我在运行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)
希望哪位帮助看看为什么会出这样的错误?
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
zhouzhouqiang_com
C# 111,129 成员 642,538 内容