overflow checking

  • Thread starter Thread starter Sean Capstick
  • Start date Start date
S

Sean Capstick

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
 
Sean,

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

HTH,

Raymond Lewallen
 
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
 
Back
Top