递归火山软件开发平台

标题: 【解决方案】CRT detected that the application wrote to memory after end [打印本页]

作者: urenai    时间: 2022-7-29 17:06
标题: 【解决方案】CRT detected that the application wrote to memory after end
Visual Studio报错CRT detected that the application wrote to memory after end of heap buffer.

原因是:我只需要50个字节的内存长度,我刚好申请了50个字节。在离开释放内存是导致CRT什么的错误。
解决办法:申请内存时,多申请一些。





欢迎光临 递归火山软件开发平台 (https://bbs.voldp.com/) Powered by Discuz! X3.4