对象引用未设置为对象的实例(file.move) [英] object reference not set to an instance of an object (file.move)
本文介绍了对象引用未设置为对象的实例(file.move)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在代码中的某处获得了对象引用错误。它并没有告诉我在哪里,我想我已经把它缩小到这一行:
展开 | 选择 | 换行 | 行号
解决方案
很难说只有一行但是...
当Visual Studio中断时,它应该给你一条断线。
可能性:tmpDlPath +文件名可能需要在\\之间中断。
也许tempDlPath没有设置?
也许dlPath没有设置?
此处的断点应该有帮助
这里有更多我的内容:
展开 | 选择 | Wrap | 行号
当程序中断时,它会破坏什么线?突出显示哪一行并且黄色箭头指向?
I''m getting the object reference error somewhere in my code. It didn''t exactly tell me where, and I think I''ve narrowed it down to this line:
Expand|Select|Wrap|Line Numbers解决方案Its hard to say from just one line but...
When Visual Studio breaks it should be giving you a line where it breaks.
Possibility: tmpDlPath + Filename may need a break in between "\\".
Maybe tempDlPath isn''t set?
Maybe dlPath isn''t set?
Breakpoints along here should help
Here''s more of what I have:
Expand|Select|Wrap|Line Numbers
When the program breaks, what line does it break on? What line is highlighted and has the yellow arrow pointing at?
这篇关于对象引用未设置为对象的实例(file.move)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆