由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - a g++ new exceptions question
相关主题
一道编程题 - throw ExceptionsSegmentation fault
C++ exception handling 一问面试时被问到的一个问题
Two questions about handling exceptions in C++又一个GDB的问题:关于显示数据
C++ Q15: throwWindows下面有没有类似Valgrind的免费内存工具?
C++ Exception Question请问GDB里怎么样查看一连续存贮的内容
超牛的debug关于valgrind 的一个问题
有什么工具可以检查内存泄漏么那里有讲解的比较清楚的gdb manual
急问:大家一般都用什么profiling工具和memory leak的监测工【贴图】这个人的Emacs + GDB 是怎么做出来的? (转载)
相关话题的讨论汇总
话题: exceptions话题: error话题: new话题: memory话题: catch
进入Programming版参与讨论
1 (共1页)
n********e
发帖数: 272
1
I used catch(std::bad_alloc) in my code to catch exceptions if 'new' fails.
But when i execute my code, a segamentation error happened. But GDB revealed
it was an early memory problem caused the error.
I used valgrind and efence, both tell me that an early 'new' operation failed.
But why it wasn't caught by my catch? by the way, I have enough memory for the
whole process.why I can still get a bad memory allocation error?
thanks
a**u
发帖数: 59
2
我象你贴一部分code来,容易判断.

failed.
the

【在 n********e 的大作中提到】
: I used catch(std::bad_alloc) in my code to catch exceptions if 'new' fails.
: But when i execute my code, a segamentation error happened. But GDB revealed
: it was an early memory problem caused the error.
: I used valgrind and efence, both tell me that an early 'new' operation failed.
: But why it wasn't caught by my catch? by the way, I have enough memory for the
: whole process.why I can still get a bad memory allocation error?
: thanks

1 (共1页)
进入Programming版参与讨论
相关主题
【贴图】这个人的Emacs + GDB 是怎么做出来的? (转载)C++ Exception Question
面试问题C++ memory leakage超牛的debug
问个问题,关于gdb的有什么工具可以检查内存泄漏么
GDB如何一次P多个变量?急问:大家一般都用什么profiling工具和memory leak的监测工
一道编程题 - throw ExceptionsSegmentation fault
C++ exception handling 一问面试时被问到的一个问题
Two questions about handling exceptions in C++又一个GDB的问题:关于显示数据
C++ Q15: throwWindows下面有没有类似Valgrind的免费内存工具?
相关话题的讨论汇总
话题: exceptions话题: error话题: new话题: memory话题: catch