Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!apple!bionet!agate!ucbvax!esvax.berkeley.edu!nye From: nye@esvax.berkeley.edu (Bill Nye) Newsgroups: comp.lang.c++ Subject: How can I find out what is on the heap? Message-ID: <26705@ucbvax.BERKELEY.EDU> Date: 7 Nov 88 08:17:30 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: nye@esvax.berkeley.edu (Bill Nye) Organization: University of California, Berkeley Lines: 11 I keep reading things here and there about references to heap memory being dropped and how operator= and X(X&) constructors can be used to avoid this. Is there any way I can PRINT OUT in some way information about everything that is currently on the heap? I don't have to be able to decipher anything about the individual allocations, just see what is there. For example, if I perform this printout both BEFORE and AFTER I do something questionable in C++, I might be able to tell if something is dangling by just seeing MORE things allocated AFTER than BEFORE. Bill Nye (nye@esvax.berkeley.edu)