Run-Time Check Failure #2 - Stack around the variable 'xxx' was corrupted.
在OpenGL/OpenCV中经常会遇到诸如:
Run-Time Check Failure #2 - Stack around the variable 'xxx' was corrupted. 的问题。不用担心,在这里你将找到答案!
错误:stack around the variable “XXX” was corrupted.,中文翻译就是“在变量XX周围的堆栈已损坏”。
把项目->XXX属性->c/c++->代码生成->基本运行时检查 为 默认值 就不会报本异常。