I know that this was an advanced compiler option in previous versions of Visual Studio, is there a way to disable array bounds checking in Visual Studio 2008? There’s no option for it that I can see.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, that’s not possible. Not having array bound checking in C/C++ is how Microsoft got into such deep trouble with malware. It is a no-no in managed code. For and For Each loops will run without bound checking if the JIT compiler can detect that the begin- and end-indices are within bounds. This is one of the reasons that the For loop “TO” value is only evaluated once.