why are we catching std::bad_alloc ?

Noel Grandin noel at peralex.com
Thu Jan 3 23:53:35 PST 2013


Why are we catching std::bad_alloc all over the place?

     git grep 'catch.*bad_alloc' | wc -l
     68

Surely we should just let it crash?
Or have a single handler for the whole process that at least attempts to 
provide some debugging data?
At the moment, most of them just log something and then continues, which 
strikes me as counter-productive.


Disclaimer: http://www.peralex.com/disclaimer.html




More information about the LibreOffice mailing list