Advertisement

Memory stuff

Started by September 09, 2004 11:45 PM
1 comment, last by George2 20 years, 3 months ago
Is there a command I can run within my program that can return the number of bytes my program is using? I need to trace memory problems, and mtrace isn't helping. I have no mallocs in my program , but there is still a leak somewhere. Thanks.
the only thing that can cause leaks are dynamic allocations, if you are not using malloc then you must be using "new".

Try this (assuming you're using linux).
[size="2"]I like the Walrus best.
Advertisement
valgrind
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon

This topic is closed to new replies.

Advertisement