Upgrade warnings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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/library/87407bwb(vs.80).aspx
 
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
 
Dan said:
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.
 
Back
Top