내가 보려고 만드는/C++
[C++] HEAP CORRUPTION DETECTED
gaga_
2021. 6. 9. 21:37
이 에러는 동적할당한 메모리보다 더 큰 영역에 접근했을 떄 나타나는 에러이다.
동적할당의 범위를 어디까지 지정해주었는지 잘 살펴보아야 한다.
참고 자료
https://dreamhealer.tistory.com/entry/VC-HEAP-CORRUPTION-DETECTED-%EC%97%90%EB%9F%AC
[VC] HEAP CORRUPTION DETECTED 에러.
CRT detected that the application wrote to memory after end of heap buffer. 위와 같은 에러의 원인은 New로 할당한 Heap 메모리 보다 더 큰 영역에 접근 했기 때문이다. 예를들어 char *temp = new char[10]..
dreamhealer.tistory.com