Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning off run-time check in Visual Studio 2008

I have an application developed in Linux (Fedora 6-13) it uses MITK, ITK, VTK, QT3. I installed VS2008 and also MITK, ITK, VTK, QT3.
When I run the application it works fine however after every action I make (clicking on button, changing state of a slider) I get the following error:

Run-Time Check Failure #2 - Stack around the variable 'variablename' was corrupted

Here I can hit continue and the app keeps on working just fine.

Is there a way to disable this runtime-check?

Thank You

Zoli

like image 413
Zoltan Varadi Avatar asked Oct 29 '25 21:10

Zoltan Varadi


1 Answers

That runtime check tells you that you have a bug - don't turn off the check, fix the bug.

If you want to have random behavior, aka not fix the bug, then you can disable the check in project properties: C++/Code Generation/Basic Runtime Checks. Be aware that this will lead to all sorts of weird problems - you won't be overwriting just the data VS uses to detect such overflows, you'll be overwriting data your app uses.

I'd suggest you post the relevant code here on SO - you'll get help fixing the problem instead of hiding it.

like image 66
Erik Avatar answered Oct 31 '25 12:10

Erik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!