hey, this answer was really interesting!  I was actually making a (poor) joke about the quixotic idea of requiring a desktop program to be just fine with malloc failing, no biggie.  your answer is much more interesting.