delorie.com/archives/browse.cgi | search |
Date: | Sun, 9 Jan 2000 06:57:39 +0500 (MVT) |
From: | Prashant TR <prashant_tr AT yahoo DOT com> |
To: | Niklas Pettersson <npedt97 AT student DOT vxu DOT se> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: does DJGPP throw bad_alloc if new failes?? |
In-Reply-To: | <857ria$52g$1@news.lth.se> |
Message-ID: | <Pine.LNX.4.10.10001090651280.533-100000@yahoo.com> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | dj-admin AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, 8 Jan 2000, Niklas Pettersson wrote: > Does DJGPP throw bad_alloc if operator new failes? It seems to throw some > exception because catch (...) catches something uppon failure. No, if you haven't defined any. It just returns NULL. Check out the set_new_handler function in new.h. It lets you set an exception handler for new. Prashant
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |