Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About memory leaks

About memory leaks

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingperformancequestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rage
    wrote on last edited by
    #1

    Is the debugger in VC++ always indicating mem leaks, or is it necessary to change the settings ? ~RaGE();

    R L 2 Replies Last reply
    0
    • R Rage

      Is the debugger in VC++ always indicating mem leaks, or is it necessary to change the settings ? ~RaGE();

      R Offline
      R Offline
      Ramu Pulipati
      wrote on last edited by
      #2

      VC++ debugger does not indicate the memory leaks. You can use CRT libary programatically to check the memory leaks, but this is of not great help compred to third party tools like BoundsChecker, etc. Thanks, Ramy

      R 1 Reply Last reply
      0
      • R Ramu Pulipati

        VC++ debugger does not indicate the memory leaks. You can use CRT libary programatically to check the memory leaks, but this is of not great help compred to third party tools like BoundsChecker, etc. Thanks, Ramy

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #3

        Ramu Pulipati wrote: VC++ debugger does not indicate the memory leaks. Hem .. actually it does :| ... what I want is (surprisingly) not to know _where_ are memory leaks, but to know if _there are_ memory leaks ... To be a little bit more clear, I have developped an API. In a test program for this API, I do not have any mem leaks detected by the debugger. But when I use some functions from this API into a more consequent mem leaks free application, then I get the memory leaks. So i suppose this __must_ be the API, and hence I´ve concluded that in the big application, project settings must have changed so that it indicates mem leaks :~ . Is that clear or are you already :zzz: :zzz: (BTW is that a new emoticon ? Never saw it before ??)? ~RaGE();

        C 1 Reply Last reply
        0
        • R Rage

          Ramu Pulipati wrote: VC++ debugger does not indicate the memory leaks. Hem .. actually it does :| ... what I want is (surprisingly) not to know _where_ are memory leaks, but to know if _there are_ memory leaks ... To be a little bit more clear, I have developped an API. In a test program for this API, I do not have any mem leaks detected by the debugger. But when I use some functions from this API into a more consequent mem leaks free application, then I get the memory leaks. So i suppose this __must_ be the API, and hence I´ve concluded that in the big application, project settings must have changed so that it indicates mem leaks :~ . Is that clear or are you already :zzz: :zzz: (BTW is that a new emoticon ? Never saw it before ??)? ~RaGE();

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Yes, it's a new emoticon. VC *tries* to detect memory leaks, third party products do it better. Christian I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002 Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002

          F 1 Reply Last reply
          0
          • C Christian Graus

            Yes, it's a new emoticon. VC *tries* to detect memory leaks, third party products do it better. Christian I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002 Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002

            F Offline
            F Offline
            Frank Driesens
            wrote on last edited by
            #5

            VC detects mem leaks by use of redirecting new and delete functions. When u'r using API calls for allocation and such, VC debugger can't see that. For these leaks use boundschecker and such.. :rolleyes:

            R 1 Reply Last reply
            0
            • F Frank Driesens

              VC detects mem leaks by use of redirecting new and delete functions. When u'r using API calls for allocation and such, VC debugger can't see that. For these leaks use boundschecker and such.. :rolleyes:

              R Offline
              R Offline
              Rage
              wrote on last edited by
              #6

              OK. Thanx to all of you. ~RaGE();

              1 Reply Last reply
              0
              • R Rage

                Is the debugger in VC++ always indicating mem leaks, or is it necessary to change the settings ? ~RaGE();

                L Offline
                L Offline
                LittleYellowBird
                wrote on last edited by
                #7

                I suspected that I had a memory leak or handle leak of some sort and have spent ages trying to find it. The other day I found a free 30 day demo for an app called GlowCode. It was really easy to use, you don't change your code, just attach it to your app while its running. Anyway I found my problem in a couple of hours :-D . I thought you might be interested, here's the link .... http://www.glowcode.com/ Ali

                R 1 Reply Last reply
                0
                • L LittleYellowBird

                  I suspected that I had a memory leak or handle leak of some sort and have spent ages trying to find it. The other day I found a free 30 day demo for an app called GlowCode. It was really easy to use, you don't change your code, just attach it to your app while its running. Anyway I found my problem in a couple of hours :-D . I thought you might be interested, here's the link .... http://www.glowcode.com/ Ali

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #8

                  Ouahh that app is great ! Thank you very much !!!! ~RaGE();

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups