473,377 Members | 1,119 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,377 software developers and data experts.

Upgrade warnings

I am new to VB.NET and Visual Studio 2005. I have several VB 6.0 programs to
convert. When I convert one of them, I get a lot of warning messages. One of
them is the following:

Variable 'xyz' is passed by reference before it has been assigned a value. A
null reference exception could result at runtime.

I'm getting lots of instances of this message. It seems obvious and I don't
need to be warned about it. Is there any way to turn off specific warning
messages? I'm getting so many that the maximum warning message count is being
exceeded, and there may be other warnings that I'd like to see.

Also, in my code I'm getting other UPGRADE_WARNING comments. At the end of
these messages, it says, "Click for more information:". There follows a long
link, but it's not clickable. How do I get at the more information?

Dan
May 21 '07 #1
3 2064
On 21 mayo, 18:20, Dan <D...@discussions.microsoft.comwrote:
I am new to VB.NET and Visual Studio 2005. I have several VB 6.0 programs to
convert. When I convert one of them, I get a lot of warning messages. One of
them is the following:

Variable 'xyz' is passed by reference before it has been assigned a value. A
null reference exception could result at runtime.

I'm getting lots of instances of this message. It seems obvious and I don't
need to be warned about it. Is there any way to turn off specific warning
messages? I'm getting so many that the maximum warning message count is being
exceeded, and there may be other warnings that I'd like to see.

Also, in my code I'm getting other UPGRADE_WARNING comments. At the end of
these messages, it says, "Click for more information:". There follows a long
link, but it's not clickable. How do I get at the more information?

Dan

Hi,

If I am OK you are sendind this variables as a reference parameter.
So, in the function/sub could be modified. The warning tells you that
this var must be set first before send it as a parameter.

For more information, you can take a look here
http://msdn2.microsoft.com/en-us/lib...wb(vs.80).aspx

May 21 '07 #2
Thank you! I understand what the warning message means. My question is not
about its meaning. My question is whether there's a way that I can turn off
certain warning messages from being listed in the warnings table at the
bottom of my screen so that I can see other types of warning messages that
I'm interested in.

Dan

"diAb0Lo" wrote:
On 21 mayo, 18:20, Dan <D...@discussions.microsoft.comwrote:
I am new to VB.NET and Visual Studio 2005. I have several VB 6.0 programs to
convert. When I convert one of them, I get a lot of warning messages. One of
them is the following:

Variable 'xyz' is passed by reference before it has been assigned a value. A
null reference exception could result at runtime.

I'm getting lots of instances of this message. It seems obvious and I don't
need to be warned about it. Is there any way to turn off specific warning
messages? I'm getting so many that the maximum warning message count is being
exceeded, and there may be other warnings that I'd like to see.

Also, in my code I'm getting other UPGRADE_WARNING comments. At the end of
these messages, it says, "Click for more information:". There follows a long
link, but it's not clickable. How do I get at the more information?

Dan


Hi,

If I am OK you are sendind this variables as a reference parameter.
So, in the function/sub could be modified. The warning tells you that
this var must be set first before send it as a parameter.

For more information, you can take a look here
http://msdn2.microsoft.com/en-us/lib...wb(vs.80).aspx

May 22 '07 #3
Dan wrote:
Variable 'xyz' is passed by reference before it has been assigned a value. A
null reference exception could result at runtime.

I'm getting lots of instances of this message. It seems obvious and I don't
need to be warned about it.
That's brave of you - hope you have lots of error-handling code in there
to catch all the run-time errors you seem prepared to get by /not/
dealing with these early on.
Is there any way to turn off specific warning messages?
I'm pretty sure it's :

Project Properties Build "Tab"
Suppress Warnings: 1,2,3, ...

HTH,
Phill W.
May 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: stacy | last post by:
I used the wizard to upgrade an application from VB 6 to VB.net, the following warnings appear around the .Input method of the MSCOmm control 'UPGRADE_WARNING: Couldn't resolve default property of...
3
by: John | last post by:
Hello, I am trying to figure out how to determine if I have fixed an upgrade warning. If I delete the green text then the upgrade warning goes away. However, I would expect it to come back...
13
by: Andy | last post by:
Hi As I try to learn VB programing I've been playing around with sourcecode from projects hosted on sourceforge. If I open this code in VB 2005 (it is originally developed in VB 2003), it will...
18
by: Brett Romero | last post by:
I'm using VS.NET 2003 with Framework 1.1. I want to upgrade to VS.NET 2005 and Framework 2.0. I'd like to hear comments from people that have moved to the new platform with final releases of...
6
by: Alex | last post by:
Hello people, We have a large application (about 5000 source files) consisting of multiple executables, DLLs and COM components written in C++. We develop and build it in Visual Studio 2003. ...
5
by: hulkko123 | last post by:
Hello people! I got a nice task, upgrading a VB 6.0 project to VB.NET. I opened VB 6.0 project file with VS.NET 2003 and a new project was created. But, of cource there were tons on errors or...
3
by: BK | last post by:
I am converting a rather large solution from VS 2003 to VS 2005. As I understand it, the bulk of the conversion is really just changing the project and solution files to the new format. It...
1
by: NeedHelp | last post by:
I am upgrade a VB6 Program (ok no wise cracks) and I get 100's of "Event may fire when form is initialized" This is despite using the "Private IsInitializing As Boolean" suggested in then...
1
by: Robert Singer | last post by:
Platform: winXP, excel 2003 Python 2.5.2 XLWriter 0.4a3 (http://sourceforge.net/projects/pyxlwriter/) Is anyone here using this very nice package, for writing excel files? I'm using it on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.