Leaking

This is a discussion on Leaking within the Tech Board forums, part of the Community Boards category; I've read from several places that windows task manager is NOT a good way to tell if you application is ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    22

    Leaking

    I've read from several places that windows task manager is NOT a good way to tell if you application is leaking memory.

    What is a good way to tell?
    Is there a handy app that monitors memory usage?
    Is using perfmon just as bad?

    I'm a relative c++ n00b so sorry if my question is stupid.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,310
    If you are looking for memory debugger on Windows, you could try Purify. There is also Valgrind, but that's for Linux.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    Passport Advantage Express



    1 title(s) found matching your search criteria. All prices are shown in USD.
    Buy online
    Quantity Part description *IBM price excluding tax
    IBM Rational Purify for Windows Authorized User License + SW Maintenance 12 Months (D53QNLL) 780.00

    Continue shopping Continue shopping
    View shopping cart View shopping cart

    *Note: Catalog prices are exclusive of tax and are subject to change without notice.

    Products acquired online will be available via electronic delivery. Shipping costs do not apply to this transaction.

    $780.00 Meow!

  4. #4
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    ...



    What?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  5. #5
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    There is a Windows tool that unlike Task Manager will actually tell you how much memory your program is using.

    Click the Start button, and select "Run". Type in "perfmon" and press enter.
    Highlight each of the counters listed (I think there are 3 to start with) and press the Delete key to remove them.
    Now press the button above the graph that looks like '+'.
    In the dialog that appears, select "process" for the "performance object".
    For the counter, select "private bytes".
    Finally, select your program's process from the instance list and press OK.

    This will tell you exactly how much memory your program is using.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. STL leaking?
    By g4j31a5 in forum C++ Programming
    Replies: 3
    Last Post: 04-03-2009, 01:47 AM
  2. Leaking Memory in a sendmail milter I wrote?
    By stevfletchcom in forum C Programming
    Replies: 8
    Last Post: 10-10-2008, 11:30 AM
  3. leaking mutexes, with no mutex in code
    By bling in forum Windows Programming
    Replies: 5
    Last Post: 10-08-2008, 11:33 AM
  4. AfxBeginThead leaking or not...
    By playwin in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2005, 10:12 AM
  5. traping leaking memory
    By null in forum C Programming
    Replies: 5
    Last Post: 10-01-2001, 12:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21