On May 12, 9:10 pm, rpbg...@yahoo.com (Roland Pibinger) wrote:
On Sat, 12 May 2007 19:42:40 +0100, Paulo da Silva wrote:
I have the following question.
If a program, using the new operator, eats a lot of memory, linux kills
it before the method specified at set_new_handler gets called!
Do you really ever run out of memory in a real application?
Have your really never seen a program with a memory leak:-)?
There are any number of other reasons why one might run out of
memory in a specific application, of course. Regretfully, for
the most frequent one I know, the memory you run out of is
stack, and that's undefined behavior. (I know platform specific
ways of protecting against the error, but nothing within the
language.)
--
James Kanze (Gabi Software) email:
ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34