home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH07 / A07134.TXT < prev    next >
Encoding:
Text File  |  1993-10-21  |  485 b   |  10 lines

  1. To use your own handler when memory is exhausted, you 
  2. must call the function set_new_handler() before trying 
  3. to allocate memory.  The argument of the function 
  4. set_new_handler() can be the address of your function. 
  5. Alternatively, the argument can be zero to reset to
  6. the default condition.  The handler specified by a call
  7. of set_new_handler() is used until set_new_handler() is 
  8. called again, either to establish a different handler 
  9. function or to reinstate the default.
  10.