mo@uunet.UU.NET (Mike O'Dell) (01/02/88)
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 <stdio> uses malloc() too.... That was the time I almost threw a PC/AT3270 out a window. -Mike O'Dell