运行时错误 [英] Run time error

查看:108
本文介绍了运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿那里,我是C#的新手,我正在编写一个备份应用程序,我正在使用它作为学习资源。


我的电脑: -

Visual Studio 2005

.NET Framework 2

组件工厂Krypton工具


测试PC: -

.Net Framework 2


================================= =============

问题:


在测试PC上,我收到此错误:

==============================================

展开 | 选择 | Wrap | 行号

解决方案

某处你正在使用一个尚未定义的对象(它仍为空)

尝试在调试中运行以更好地了解它是错误的。


因为堆栈跟踪中没有列出行号我猜它是在构造函数中发生的。

无论是你的还是ComponentFactory.Krypton.Toolkit.KryptonForm类的构造函数。


虽然你的timer_tick函数在这一行之前执行:

InitializeComponent() ;

它也可能引起麻烦


展开 | 选择 | 换行 | 行号


您可能还会发现Dictionary< string,string>比String [,]


更友好

hey there, im reasonably new to C# and im currently writing a backup application which im using as a learning resource.

My PC :-
Visual Studio 2005
.NET Framework 2
Component Factory Krypton Tools

Test PC :-
.Net Framework 2

==============================================
The Issue:

On the testing PC, im receiving this error:
==============================================

Expand|Select|Wrap|Line Numbers

解决方案

Somewhere you are using an object that has not been defined (it is still null)
Try running in debug to get a better idea of where it is erroring.

since there was no line number listed in the stack trace I am guessing it is happening in the constructor.
Either yours or the ComponentFactory.Krypton.Toolkit.KryptonForm class''s constructor.


Although if your timer_tick function executes before this line:
InitializeComponent();
it might cause trouble too


Expand|Select|Wrap|Line Numbers


You might also find that a Dictionary<string, string> to be more friendly than a String[ , ]


这篇关于运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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