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