项目使用vb.net 2003转换为vb.net 2010时出现问题 [英] Problem occur to project that using vb.net 2003 convert to vb.net 2010

查看:72
本文介绍了项目使用vb.net 2003转换为vb.net 2010时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

以前,我使用vb.net 2003作为平台.但是当前平台是vb.net 2010的更改.我想参考我的旧编码,但问题如下所述.只是想知道为什么会发生以及如何解决它.

1)什么是调用堆栈以及如何克服这种情况?

2)调试时,出现问题警告.它说某些blaa..blaa..blaa .resx文件丢失或参数不正确.为什么会发生这种情况以及克服的方法.

3)为什么2010年版本指出在给变量赋值之前使用了变量"x".在运行时可能会导致空引用异常."?

Hi all,

Previously i''m using vb.net 2003 as my platform. but currently the platform is changes to vb.net 2010. i want to refer to my old coding but the problem occur as stated below. Just wondering why it happen and how to solved it.

1) what is call stack and how to overcome this situation?

2) when debugging, a warning of problem occur. it says that some blaa..blaa..blaa .resx file is missing or parameter incorrect. why is that happen and way to overcome.

3) why 2010 version noted that a "Variable ''x'' is used before it has been assigned a value. A null reference exception could result at runtime."?

推荐答案

"1)什么是调用堆栈以及如何克服这种情况?"
调用堆栈是一种存储结构,用于存储有关方法调用的所有信息.您没有提到这种情况,所以我不太确定您在说什么.

"2)调试时,出现问题警告.它表明某些blaa..blaa..blaa .resx文件丢失或参数不正确.为什么会发生这种情况以及解决方法."
确保所有资源文件都已包含在新的迁移项目中,并且没有遗漏任何内容.

为什么2010版本指出在给变量赋值之前使用了变量"x".在运行时可能会导致空引用异常.?
编译器(自.Net 2.0起)将其作为警告.在此处详细了解如何解决此错误. [
"1) what is call stack and how to overcome this situation?"
A call stack is a memory structure that stores all information about the method calls. You have not mentioned the situation so I''m not quite sure what you are talking about.

"2) when debugging, a warning of problem occur. it says that some blaa..blaa..blaa .resx file is missing or parameter incorrect. why is that happen and way to overcome."
Make sure all the resource files have been included in the new migrated project and that nothing has been missed out.

"why 2010 version noted that a "Variable ''x'' is used before it has been assigned a value. A null reference exception could result at runtime."?
The compiler (since .Net 2.0) catches this as a warning. Read more about how to resolve this error here[^].


这篇关于项目使用vb.net 2003转换为vb.net 2010时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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