Mail Archives: djgpp/1998/02/21/00:00:51
Luke Bishop (lbishop AT calvin DOT stemnet DOT nf DOT ca) wrote:
> No, worse still. DJGPP's LIBC standard new handler dumps you to DOS if it
> cannot allocate the memory. To avoid this, you should overload the new
> operator and call malloc manually inside the overloaded operator.
Uhm, I'm really not an expert, but isn't installing a new-handler
(add_new_handler or something?) the way to go? New should never (ever)
return NULL, according to the standard.
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
\----/==\----/
\ / \ / "You know, Beavis, you need things that suck,
\/ \/ to have things that are cool", Butt-Head.
- Raw text -