Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If you are working in an x86 environment, you can use native run-time checks to catch common run-time errors such as:
- Stack pointer corruption
- Overruns of local arrays
- Stack corruption
- Dependencies on uninitialized local variables
- Loss of data on an assignment to a shorter variable
To enable run-time checks in a debug build, use the /RTC option and link with the debug version of a C run-time library.
You cannot use /RTC with an optimized (/O) build. A compiler error results.
When you debug a program with run-time checks enabled, the default action is for the program to stop and break to the debugger when a run-time error occurs.
See Also
Changing How the Debugger Handles Exceptions | Compiler Options
Send Feedback on this topic to the authors