카테고리 없음 Runtime check failure #2 - Stack around the variable "array" was corrupted. 환상상상속상 2020. 3. 24. 01:51 https://social.msdn.microsoft.com/Forums/vstudio/en-US/a4b8a8de-a0d7-4af8-9ecb-d686279c4488/runtime-check-failure-2-stack-around-the-variable-quotarrayquot-was-corrupted?forum=vcgeneral Runtime check failure #2 - Stack around the variable "array" was corrupted. Hi, in the if condition: if (myArray[index] > myArray[index + 1]) index+1 may be equal to end (when index take the value end-1) and it can't access to this element that doesn't exist social.msdn.microsoft.com https://stackoverflow.com/questions/45030157/run-time-check-failure-2-stack-around-the-variable-v-was-corrupted