#include "pexceptions.h" #include using namespace PlanckDPC; void PFailHandler(void); void PFailHandler(void) { set_new_handler(NULL); cerr << "Allocation exception -- out of memory" << endl; throw(AllocationError("new")); } void InitFailNewHandler() { set_new_handler(PFailHandler); }