Export (0) Print
Expand All

/removeintchecks

Turns overflow error checking for integer operations on or off.

/removeintchecks[+ | -]

Arguments

+ | -
/removeintchecks- causes the compiler to check all integer calculations for errors such as overflow or division by zero. /removeintchecks- is the default for this option.

Specifying /removeintchecks or /removeintchecks+ prevents error checking and can make integer calculations faster. However, without error checking and if data type capacities are overflowed, incorrect results may be stored without raising an error.

To set /removeintchecks in the Visual Studio integrated development environment

  1. Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
  2. Click the Configuration Properties folder.
  3. Click the Optimizations property page.
  4. Modify the Remove integer overflow checks property.

To set /removeintchecks programmatically

  • See RemoveIntegerChecks Property.

Example

The following code compiles test.vb and turns off integer overflow error checking:

vbc /removeintchecks+ test.vb

See Also

Visual Basic Compiler Options | Sample Compilation Command Lines

Show:
© 2015 Microsoft