Source(s) of St9bad_alloc exception

Jeffrey Holle jeff.holle@verizon.net
Wed Feb 18 05:46:00 GMT 2004


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?




More information about the Gcc-help mailing list