This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Source(s) of St9bad_alloc exception


I am developing a program that must use a lot of new/delete operators and it has bugs.

My compiler is gcc version 3.3.

I'm catching a St9bad_alloc message via the exception::what() method.

Is there a more informative method to use, perhaps in a class deriving from exception?

What are the possible sources of this error. I assume new, but can it be produced by giving delete a bogus pointer?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]