首页 > 代码库 > std::bad_alloc
std::bad_alloc
一个服务器程序,长时间运行报错了. ----------- 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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。