Results 1 to 2 of 2

Thread: Memory Leak ... spoiling my life

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    42

    Memory Leak ... spoiling my life

    Hi all,

    How do i find memory leaks in the code.....
    .strange.........with out an exe......
    ya ..... i mean it....
    i have a code..... and am unable to make an exe ....
    due to many problems..... still ... i wann to find memory leaks
    in my code.....if any..???

    tia
    Kittu
    Cheer up!

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Study the code carefully. Look for mallocs not matched by frees and news not matched by deletes. Look for calls to the function strdup, it allocates memory.

    But why do you care about that now? Better get your code to compile.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width