*** For details on how to be removed from this list visit the ***
*** CCP4 home page http://www.ccp4.ac.uk ***
3. (slightly off-topic) With the increasing shift to using c++ and
dynamic
memory allocation, how to people generally check for memory leaks?
The easiest way is to watch your memory consumption using the Unix
top command while the program is running.
I'm
curious about this because I'm trying to get a new proceedure working
using clipper, and valgrind complains about some of the clipper
file i/o
routines; so my settings for valgrind are probably off (--
tool=memcheck
--leak-check=yes --show-reachable-yes).
The best tool I ever used for debugging memory leaks at run time was
called Purify from Rational Technology. At the time it only ran on
Sun and SGI I think, but I got a message from them several years ago
that they now have a Linux version. The SGI product was VERY
expensive, but worth its weight in gold. You could pinpoint memory
problems no other program could locate, and do it easily. Don't know
how much the Linux costs, or if it is as good as the SGI version I
remember, but it's worth a look.
As far as free stuff goes, I have never found anything that comes
close, though I haven't looked recently. Dmalloc might give you what
you need (dmalloc.com), but is limited.
Good luck
Richard Gillilan
MacCHESS
Cornell
Thanks,
Pete