Thread: memory leak checker program? for windows

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    58

    memory leak checker program? for windows

    Hi,

    i am writing a c program.want to check if it leaks memory.

    I am compiling and runing on windows platform.Using the visual c++ toolkit compiler or the dev c++ compiler.Find them reliable.

    I want to know is there any way / or any software on the windows platform that would let me check for memory leaks in my c program.

    previously i used bcheck on unix at college.But I want to use a windows based memory leak checker.IF you know of any,do share.
    Thanking you,
    Rahul SK

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well visual studio has the ability to produce a list of all blocks still allocated by using a debug allocation library.
    Searching for MALLOC_DBG should help.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Program crashes and memory leaks
    By ulillillia in forum Tech Board
    Replies: 1
    Last Post: 05-15-2007, 10:54 PM
  3. Any Memory Leak Checking Tool?
    By George2 in forum C Programming
    Replies: 4
    Last Post: 06-21-2006, 11:02 PM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM