您的位置:首页 > 其它

std::bad_alloc

2014-12-17 09:37 399 查看
一个服务器程序,长时间运行报错了. ----------- 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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: