home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 17861 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  991 b 

  1. Path: sparky!uunet!spool.mu.edu!agate!forney.berkeley.edu!jbuck
  2. From: jbuck@forney.berkeley.edu (Joe Buck)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: new returns address it already returned!
  5. Date: 12 Dec 1992 17:55:29 GMT
  6. Organization: U. C. Berkeley
  7. Lines: 18
  8. Message-ID: <1gd92hINN1er@agate.berkeley.edu>
  9. References: <Bz24B3.62A@news.cso.uiuc.edu> <1992Dec11.220827.6197@microsoft.com>
  10. NNTP-Posting-Host: forney.berkeley.edu
  11.  
  12. In article <1992Dec11.220827.6197@microsoft.com> jimad@microsoft.com (Jim Adcock) writes:
  13. >As a test, I suggest if at all possible start by commenting out ALL of
  14. >the delete statements your program uses.  Not some, ALL of them.  This
  15. >is only possible to do if your program makes reasonably bounded use of
  16. >heap.
  17.  
  18. The simple way to do this test is to link in the following code:
  19.  
  20. void operator delete(void *) {}
  21.  
  22. This will replace delete with a do-nothing function.  There is no need
  23. to go through and comment out every delete.
  24.  
  25.  
  26.  
  27.  
  28. --
  29. Joe Buck    jbuck@ohm.berkeley.edu
  30.