473,395 Members | 1,726 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,395 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 4266
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...
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:
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
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
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?
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...
0
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,...
0
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...
0
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...

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.