开发者

turning off run-time check in visual studio 2008

开发者 https://www.devze.com 2023-02-20 01:41 出处:网络
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 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.开发者_StackOverflow 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号