I have an application developed in linux(fedora6-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, changig 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
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.