Thread: Memory problems
View Single Post
Old Mar 6th, 2007, 10:50 AM   #14
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
Quote:
Originally Posted by grumpy View Post
Unfortunately, that doesn't explain your problem. If operator new failed, it would throw an exception and the program would exit unless the exception was caught. It would not cause a problem AFTER main() has returned, and not with operator delete.
I'm not so good at english, so maybe I've understood something wrong.
What I meant, was that I actually forgot to catch bad_alloc. I was only catching some objects I'd made by myself, and no other, not even catch(...);
I just looked at you little article about exceptionhandling (DaWei's signature), and I'm gonna read that, so I can better at exceptionhandling too.
__________________
-- v0id
v0id is offline   Reply With Quote