This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Source(s) of St9bad_alloc exception
- From: Jeffrey Holle <jeff dot holle at verizon dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Feb 2004 21:43:29 -0800
- Subject: Source(s) of St9bad_alloc exception
- Reply-to: jeff dot holle at verizon dot net
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?