Thread: How to Spot Memory Leaks?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    167

    How to Spot Memory Leaks?

    What's the easiest way to output how much memory my program is leaking? (Total allocations / deallocations) (Also, I'm just using new/delete, not malloc/free)

    I am mainly using unix (gdb/g++) if that makes it easier. Or I can also copy my code files into MS Visual C++ on WinXP if there's a better way there?
    Last edited by Paul22000; 07-07-2008 at 10:44 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking for memory leaks
    By Bladactania in forum C Programming
    Replies: 5
    Last Post: 02-10-2009, 12:58 PM
  2. memory leaks
    By TehOne in forum C Programming
    Replies: 4
    Last Post: 10-10-2008, 09:33 PM
  3. Tons of memory leaks
    By VirtualAce in forum C++ Programming
    Replies: 11
    Last Post: 12-05-2005, 10:19 AM
  4. COM Memory Leaks
    By subdene in forum Windows Programming
    Replies: 0
    Last Post: 06-07-2004, 11:57 AM
  5. Memory leaks
    By Malek in forum C++ Programming
    Replies: 2
    Last Post: 02-09-2003, 06:12 PM