[vs运行报错] CRT detected that the application wrote to memory after end of heap buffer

CRT 是c/c++ run-time lib , 是程序运行时所需的核心库.

这个错误是因为以对内在操作的过程中,所写的地址超出了,所分配内在的边界


有个建议是:

1、内存申请多少释放多少,释放掉你申请过的内存,不要乱释放;
2、不能释放已经释放的内存;



原文地址:https://www.cnblogs.com/Pomodori/p/4356942.html