// // Basic Summary: // // Implementation file for out of memory definition // // Copyright: // // Copyright 1993 Ron Burback // Copyright 1993 Objects Plus // All rights reserved // // Description: // this function gets called when a new fails // you need to include set_new_handler(&out_of_memory) in your main program // // Include files: // #include #include #include #include "memory_error.h" // // function: out_of_memory // parameters: none // goal: signal out of memory and exit // returns: none // void out_of_memory() { cerr << "operator new failed: out of memory\n" ; exit(1); }