Categories 不学无术 C++堆内存相关问题小结 Post author By idailylife Post date 2017年4月5日 No Comments on C++堆内存相关问题小结 C++中遇到的堆内存相关问题,基本可以归为下述三类: 野指针 一些内存单元已被释放,之前指向它的指针还在被使用。这会导致无法预测的运行时错误。 重复释放 试图释放已经被释放过的内存单元,或者释放已被重新分配的内存单元。这会导致运行时错误。 内存泄漏 不再需要的内存单元一直驻留没有释放。这会导致内存占用剧增,直至堆内存无法分配,运行时错误。 摘自《深入理解C++11》 Tags C++ ← 日淘ThinkPad X1 carbon 2017到手,写个下单转运收货流水账 → Risk Measurement I (the Greeks,希腊值) Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.