Path: utzoo!mnetor!uunet!mo From: mo@uunet.UU.NET (Mike O'Dell) Newsgroups: comp.lang.c++ Subject: malloc() failures and exception catching Message-ID: <4677@uunet.UU.NET> Date: 2 Jan 88 03:56:40 GMT Organization: UUNET Communications Services, Arlington, VA Lines: 16 Keep in mind, folks, that on many, many systems, printf() calls malloc() to do its formatting so printing a message inside a _new_handler is complete and instantaneous recursive death. I discovered this the hard way when I wrote a malloc() which had an additional interface (lmalloc()) which could allocate large objects and would return pointers that would work with huge memory model programs. Debugging is tricky in these circumstances, particuarly if uses malloc() too.... That was the time I almost threw a PC/AT3270 out a window. -Mike O'Dell