Date: Sun, 9 Jan 2000 06:57:39 +0500 (MVT) From: Prashant TR To: Niklas Pettersson 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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