473,804 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2075
On 21 mayo, 18:20, Dan <D...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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
398
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 object MSComm1.Input. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' When running the application, the following dialog comes up when a character is written to the .Output method "An unhandled...
3
1928
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 after I rebuild if I haven't changed any of the code. Can anyone clarify what actions to take with the upgrade warnings? Thanks
13
2295
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 automatically upgrade to VB 2005? /Andy
18
1954
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 VS.NET and the framework. I'm interested in any installation and code migration issues you may have had. Thanks, Brett
6
5350
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. I'm in charge of evaluating whether we want to migrate it to VS2005 (the previous migration from 6.0 to 7.1 was a pain). So far, things do not look good. I installed VS2005 on a VM, copied the sources over and tried to build the solution.
5
1401
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 warnings. You might quess my question: What is the easiest way to correct those errors and warnings, are there any tasklist or notes which could give a good and fast help for upgrading?
3
1206
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 completed ok, but I have a lot of errors and warnings, 17 errors and 260 warnings. The errors seem to all relate to dlls written in VS 2003 that haven't been converted and recompiled. The references are to the dlls, NOT the projects. A typical...
1
1236
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 help and the fact that the possibilty of this occuring was corrected in the orginal application. Is there any way to either blocking the warning from being generated
1
2520
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 python 2.5.2. (although it is made for older version of python) and cannot find a way to get rid of this error (code and errors below). Does anyone know how to avoid it ? I would appreciate all help and
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10352
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9175
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.