Need help with memory leaks-VBForums
Results 1 to 18 of 18

Thread: Need help with memory leaks

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Thumbs up Need help with memory leaks

    Hi everybody. For my program, I use the library, similar to GDAL. When the quick search is generatinga in the program (specific area), there are memory leaks. Used Visual Leak Detector, but the program freezes and verification has not been fully performed. This detector advises developer of GDAL. There may be more effective debuggers?
    Thanks!

  2. #2
    Junior Member
    Join Date
    Nov 2011
    Posts
    20

    Red face Re: Need help with memory leaks

    Quote Originally Posted by Jokeman View Post
    Hi everybody. For my program, I use the library, similar to GDAL. When the quick search is generatinga in the program (specific area), there are memory leaks. Used Visual Leak Detector, but the program freezes and verification has not been fully performed. This detector advises developer of GDAL. There may be more effective debuggers?
    Thanks!
    I advise Deleaker but you can use any GDI leaks debugger

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Re: Need help with memory leaks

    mmmm... Thank you? but problem is actual

  4. #4
    Junior Member
    Join Date
    Nov 2011
    Posts
    20

    Re: Need help with memory leaks

    Memory leaks are actual always (headache)

  5. #5
    Member
    Join Date
    Apr 2012
    Posts
    35

    Re: Need help with memory leaks

    VLD, Valgrind, Purify, Memcheck..... Profit!

  6. #6
    Junior Member
    Join Date
    Nov 2011
    Posts
    20

    Re: Need help with memory leaks

    Quote Originally Posted by Big Pig View Post
    VLD, Valgrind, Purify, Memcheck..... Profit!
    oMG You really expert - debugger :

  7. #7
    Member
    Join Date
    Apr 2012
    Posts
    35

    Re: Need help with memory leaks

    Yes I AM

  8. #8
    Member
    Join Date
    Apr 2012
    Posts
    35

    Re: Need help with memory leaks

    Quote Originally Posted by MastAvalons View Post
    oMG You really expert - debugger :
    I have spent a lot of time on debugging and catching memory leaks. If do it for a long time, it is can helps to make good money on this.
    Last edited by Big Pig; Jun 27th, 2012 at 03:52 PM.

  9. #9
    Junior Member
    Join Date
    Nov 2011
    Posts
    20

    Re: Need help with memory leaks

    +5 it's true

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Re: Need help with memory leaks

    Thanks, guys! And what programs for liquidation memory leaks did you use personally?

  11. #11
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,013

    Re: Need help with memory leaks

    Quote Originally Posted by Jokeman View Post
    Thanks, guys! And what programs for liquidation memory leaks did you use personally?
    Personally, the only one i have used is valgrind. I can recommend it, but I guess its not relevant for you since you appear to be using Windows.
    ---My Flickr photo (mostly screenshots these days!) stream. Have a look!

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    TCP client/server connection | Retrieving the EventHandler for any Event by code.
    Check out the work in progress: Vortex - C++ 3D Game engine for windows and linux - (Development blog - Leave a comment!)

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Re: Need help with memory leaks

    Hi, Atheist! yes, I'm using windows now. I have such question because I always use Linux and use valgrind for a long time. But now there were circumstances that I have to work with windows.

  13. #13
    Member
    Join Date
    Apr 2012
    Posts
    35

    Re: Need help with memory leaks

    It is difficult to argue. Valgrind is essential for Linux.

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Re: Need help with memory leaks

    Thank you very much for your help! I think I found what I was looking for))

  15. #15
    Member
    Join Date
    Apr 2012
    Posts
    35

    Re: Need help with memory leaks

    "Effective C++" by Scott Meyers - read it!
    One more thing: you can find good guides how to fix the leak by yourself.

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Re: Need help with memory leaks

    Thank you! I heard about this book. But I have not had the opportunity to read it.

  17. #17
    New Member
    Join Date
    Nov 2012
    Posts
    6

    Re: Need help with memory leaks

    What is a Memory Leak?
    A memory leak, occurs when a computer program consumes memory but is unable to release it back to the operating system. In C/C++ whenever a program allocates dynamic memory on the heap it should also release the same or it results in memory leak.

    In C dynamic memory is allocated on Heap using the function malloc, the same memory is reclaimed by explicitly calling the function free.

    In C++ dynamic memory is allocated on Heap using the operator new or new[], the same is reclaimed through delete or delete[].

    Resources to know more about memory Leaks?
    You can find many online tutorials and books to know more about the various common scenarios in which memory leaks are encountered.
    + http://www.yolinux.com/TUTORIALS/C++...moryLeaks.html ---- books

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Mar 2012
    Posts
    31

    Re: Need help with memory leaks

    Thank you all! I found what I was looking for. And even more!

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.