Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Advice on checking for memory leaks and dangling resources?
QtWS25 Last Chance

Advice on checking for memory leaks and dangling resources?

Scheduled Pinned Locked Moved General and Desktop
17 Posts 6 Posters 12.9k Views
  • 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.
  • J Offline
    J Offline
    Jonathan
    wrote on last edited by
    #5

    Windows 7 ;o(

    I guess in an ideal world such an important function would be part of the Qt SDK.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #6

      why should it be part of Qt? it should be part of the Compiler :-)

      For windows (commercially) use Purify (but that's expensive)...

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #7

        and Purify is not really very useful, very slow and needs tonnes of memory :( we need a better tool for win

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #8

          Purify might be slow, but it works and shows, where the problems are, and not only for memory leaks. And currently, I haven't tested other memory profiler for windows. Do you have any suggestions, which tool to use instead saying, we need another?

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #9

            [quote author="Gerolf Reinwardt" date="1290609416"]Do you have any suggestions, which tool to use instead saying, we need another?[/quote]

            nope i'm looking for some alternative too ...

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #10

              You can use Bounds Checker, which is not faster, but different :-)
              You can spend really much money and use AppSite, which would be shooting on birds with a cannon
              Some people state, AQTime could be used for that (I only used that for performance profiling up to now).
              If you search the web, most people state, all memory profilers for windows are too slow or too expensive (like AppSite which has a different scope, and cost something like my house :-) )

              I know no freeware checker like valgrind :-(

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • A Offline
                A Offline
                alexander
                wrote on last edited by
                #11

                Purify is commercial application:(

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  giesbert
                  wrote on last edited by
                  #12

                  like most memory profilers for windows :-(
                  I didn't find a good memory profiler for linux for free...

                  Nokia Certified Qt Specialist.
                  Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    blex
                    wrote on last edited by
                    #13

                    Some years ago I have used this tool http://www.codeproject.com/KB/applications/visualleakdetector.aspx

                    I do not know about modern versions of Visual Studio support, but it is free and open source.


                    Oleksiy Balabay

                    RamonFarronR 1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      giesbert
                      wrote on last edited by
                      #14

                      Hi,

                      if I understood correctly, visualleakdetector is a replacement of the MSVS internal leak detection (CRT debug functions) which must be added programatically. It only works in debug mode. and it can be compiled for new MSVS versions by using the source code. could work but only in the same way as the MSVS build in detection with just a bit more information...

                      Nokia Certified Qt Specialist.
                      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        blex
                        wrote on last edited by
                        #15

                        [quote author="Gerolf Reinwardt" date="1290626948"]could work but only in the same way as the MSVS build in detection with just a bit more information...[/quote]

                        Sorry, I do not know it internals. When I use it then in the debug output on program exit I get the human readable list of leaks with information where leak is created. It was enough for me at that time.


                        Oleksiy Balabay

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          DeVeL-2010
                          wrote on last edited by
                          #16

                          AQTime can detect memory leaks, but it's mainly for profiling.
                          Intel Parallel Inspector (is also part of the Intel Parallel Studio) is another option.
                          Both are commerical, but you can always get a trial version.

                          1 Reply Last reply
                          0
                          • B blex

                            Some years ago I have used this tool http://www.codeproject.com/KB/applications/visualleakdetector.aspx

                            I do not know about modern versions of Visual Studio support, but it is free and open source.

                            RamonFarronR Offline
                            RamonFarronR Offline
                            RamonFarron
                            Banned
                            wrote on last edited by RamonFarron
                            #17
                            This post is deleted!
                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved