std::bad_alloc的处理

问题:由于C++程序HTTP服务端需要持续不断地读写入大量的高清类图片。测试图片流总量大于1000张,在大概500张处系统提示这个信息。

 terminate called after throwing an instance of 'std::cad_alloc' what():std::bad_alloc

链接:

1.问题分析

https://blog.csdn.net/wuhenlegou110/article/details/86743672?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

2.问题处理:

https://blog.csdn.net/shenshenwu666/article/details/80986916

https://blog.csdn.net/TVXQ_xy/article/details/50392384?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

感谢分享!!!@Eminbogen@一朝柯梦@TVXQ_xy

猜你喜欢

转载自blog.csdn.net/xiaoshunzi111/article/details/104551671
std
今日推荐