473,385 Members | 1,546 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,385 software developers and data experts.

overflow checking

Is there a way to stop overflow checking at runtime in VB.NET? I have one
math calculation that must behave like another system, it could generate a
number > 2 billion (<4) which then needs to go into a signed 32 bit integer.
I don't want to disable it for the entire program though, just at one spot.

Thanks,
Sean

Nov 20 '05 #1
6 4265
Sean,

Go to Project Properties, Configuration Properties, Optimizations and check
the box that says "Remove Integer Overflow Checks"

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
Is there a way to stop overflow checking at runtime in VB.NET? I have one
math calculation that must behave like another system, it could generate a
number > 2 billion (<4) which then needs to go into a signed 32 bit integer. I don't want to disable it for the entire program though, just at one spot.
Thanks,
Sean

Nov 20 '05 #2
Sean,

Go to Project Properties, Configuration Properties, Optimizations and check
the box that says "Remove Integer Overflow Checks"

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
Is there a way to stop overflow checking at runtime in VB.NET? I have one
math calculation that must behave like another system, it could generate a
number > 2 billion (<4) which then needs to go into a signed 32 bit integer. I don't want to disable it for the entire program though, just at one spot.
Thanks,
Sean

Nov 20 '05 #3
But that removes it from the entire project does it not?

Sean
"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
Sean,

Go to Project Properties, Configuration Properties, Optimizations and check the box that says "Remove Integer Overflow Checks"

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could generate a number > 2 billion (<4) which then needs to go into a signed 32 bit

integer.
I don't want to disable it for the entire program though, just at one

spot.

Thanks,
Sean


Nov 20 '05 #4
But that removes it from the entire project does it not?

Sean
"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
Sean,

Go to Project Properties, Configuration Properties, Optimizations and check the box that says "Remove Integer Overflow Checks"

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could generate a number > 2 billion (<4) which then needs to go into a signed 32 bit

integer.
I don't want to disable it for the entire program though, just at one

spot.

Thanks,
Sean


Nov 20 '05 #5
Sean,

Yes, sorry about that. I forgot you didn't want to remove it from the
entire project. In your case, I'm not sure it can be done. You might look
at removeintchecks compiler option, although I still don't think its going
to help you solve what you want to do. I'm pretty sure that does the same
thing as going in and checking that box, but I haven't really looked into
it.

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
But that removes it from the entire project does it not?

Sean
"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
Sean,

Go to Project Properties, Configuration Properties, Optimizations and check
the box that says "Remove Integer Overflow Checks"

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could
generate a number > 2 billion (<4) which then needs to go into a signed 32 bit

integer.
I don't want to disable it for the entire program though, just at one

spot.

Thanks,
Sean



Nov 20 '05 #6
Sean,

Yes, sorry about that. I forgot you didn't want to remove it from the
entire project. In your case, I'm not sure it can be done. You might look
at removeintchecks compiler option, although I still don't think its going
to help you solve what you want to do. I'm pretty sure that does the same
thing as going in and checking that box, but I haven't really looked into
it.

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
But that removes it from the entire project does it not?

Sean
"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
Sean,

Go to Project Properties, Configuration Properties, Optimizations and check
the box that says "Remove Integer Overflow Checks"

HTH,

Raymond Lewallen

"Sean Capstick" <sc**************@dimensions.ca> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could
generate a number > 2 billion (<4) which then needs to go into a signed 32 bit

integer.
I don't want to disable it for the entire program though, just at one

spot.

Thanks,
Sean



Nov 20 '05 #7

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

Similar topics

44
by: JKop | last post by:
You know how the saying goes that *unsigned* overflow is... well.. defined. That means that if you add 1 to its maximum value, then you know exactly what value it will have afterward on all...
0
by: jacob navia | last post by:
I have added overflow checking as an optional feature of lcc-win32. This means integer addition/subtraction/multiplication are tested for overflow. If the overflow is detected, I call a user...
8
by: Ian Pilcher | last post by:
When adding two values of type time_t, how can I check for overflow? Maybe I'm just brain-cramped today, but I can't figure out how to do it. Thanks! --...
6
by: Sean Capstick | last post by:
Is there a way to stop overflow checking at runtime in VB.NET? I have one math calculation that must behave like another system, it could generate a number > 2 billion (<4) which then needs to go...
25
by: junky_fellow | last post by:
Is there any way by which the overflow during addition of two integers may be detected ? eg. suppose we have three unsigned integers, a ,b, c. we are doing a check like if ((a +b) > c) do...
8
by: starffly | last post by:
In my program, the caculated value is supposed to be no more than the constant named MAXINT,otherwise, overflow error will be informed.however, I cannot test if the value exceeds MAXINT within the...
2
by: jou00jou | last post by:
Hi, I have trouble using sscanf and fgets to check for overflow. I will post the assignment specification so I could help whoever would kindly like to offer his/her help. ...
30
by: Angel Tsankov | last post by:
Hello! Does the C++ standard define what happens when the size argument of void* operator new(size_t size) cannot represent the total number of bytes to be allocated? For example: struct S {...
42
by: thomas.mertes | last post by:
Is it possible to use some C or compiler extension to catch integer overflow? The situation is as follows: I use C as target language for compiled Seed7 programs. For integer computions the C...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.