今天遇到的bug
2012-05-09 22:28
453 查看
今天在调试代码c++的时候,遇到了两个bug。顺利的解决。
1.运行时,中断。错误提示:terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
google了一下,发现问题是,将NULL赋值给std::string变量。
参考网址:http://gcoder.blogbus.com/logs/32262907.html
2.运行时,中断。提示错误:std::out_of_range
google了一下,发现问题是,将空字符串压入到vector中的时候会出现这种错误。
参考网址:http://pingpeace.blog.51cto.com/304509/284550
ps:我的新博客地址:http://www.xinghaixu.com
1.运行时,中断。错误提示:terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
google了一下,发现问题是,将NULL赋值给std::string变量。
参考网址:http://gcoder.blogbus.com/logs/32262907.html
2.运行时,中断。提示错误:std::out_of_range
google了一下,发现问题是,将空字符串压入到vector中的时候会出现这种错误。
参考网址:http://pingpeace.blog.51cto.com/304509/284550
ps:我的新博客地址:http://www.xinghaixu.com
相关文章推荐
- 最恶心的bug 今天遇到了
- 今天改bug遇到一个ie8样式错乱问题
- 今天遇到一个url转码的bug
- 今天遇到一个url转码的bug
- 今天遇到的一个BUG :app:compileDebugJavaWithJavac'. Could not add entry '0' to cache localClassSetAnalysis.b
- 今天遇到的一个bug,折腾了一早上,不过解决了,还是很高兴
- 【笔记】今天貌似遇到了Python 3的bug
- 今天遇到的bug
- 今天遇到的bug
- 今天遇到一个由于内存访问越界而引起的bug
- 今天遇到一个关于STL中排序的问题, 怀疑是sort的bug!
- 记录一下今天遇到的两只bug
- 今天在此记录一下自身遇到的一些bug
- 今天遇到的一个在main函数中打开TitleAreaDialog的bug
- 今天改bug遇到一个ie8样式错乱问题
- 今天遇到这样一个bug
- springmvc项目搭建过程中遇到的BUG及其解决方法
- STM32--今天下午遇到了两个BUG。记录一下(栈溢出和串口调试)
- android app检查更新遇到的一个小bug
- 今天安装 Atlas 时遇到一个小问题