码迷,mamicode.com
首页 > 其他好文 > 详细

std::bad_alloc

时间:2014-12-17 09:40:45      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:ar   io   on   ad   时间   new   服务器   程序   br   

一个服务器程序,长时间运行报错了. ----------- terminate called after throwing an instance of ‘std::bad_alloc‘ what(): St9bad_alloc ----------- 据查为内存不足所致 new 无法分配到相应内存,内存存在泄露. std::bad_alloc is an exception that gets thrown by ‘new‘ when it can‘t allocate the memory you requested. Something (very likely the standard library containers you are using) is requesting memory, and that memory can‘t be allocated.

std::bad_alloc

标签:ar   io   on   ad   时间   new   服务器   程序   br   

原文地址:http://www.cnblogs.com/lvdongjie/p/4168661.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!