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. Visual Leak Detector not recognising the Qt parent child relationship in detecting memory leaks
Forum Updated to NodeBB v4.3 + New Features

Visual Leak Detector not recognising the Qt parent child relationship in detecting memory leaks

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 2.0k Views 3 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.
  • vishnuV Offline
    vishnuV Offline
    vishnu
    wrote on last edited by
    #1

    Hello All,
    I am using link visual leak Detector (VLD)to detect the memory leaks in my C++/Qt code. Once I end the program VLD is showing almost around 7000 memory leaks (519961 bytes). I have used VLD tool in Qt creator and Visual studio 2015. Both tools shows big list of memory leaks but most of them are not leaks due to Qt parent child relationship. It is very difficult to find the leaks in my App(around 10000 lines of code).

    Is there some kind of filter tool so that I see only critial or specific errors ? Is there any alternative Memory leak detector that recognises Qt parent child relationship? Thank you

    mrjjM 1 Reply Last reply
    0
    • vishnuV vishnu

      Hello All,
      I am using link visual leak Detector (VLD)to detect the memory leaks in my C++/Qt code. Once I end the program VLD is showing almost around 7000 memory leaks (519961 bytes). I have used VLD tool in Qt creator and Visual studio 2015. Both tools shows big list of memory leaks but most of them are not leaks due to Qt parent child relationship. It is very difficult to find the leaks in my App(around 10000 lines of code).

      Is there some kind of filter tool so that I see only critial or specific errors ? Is there any alternative Memory leak detector that recognises Qt parent child relationship? Thank you

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @vishnu
      Hi
      For other such tools, there is normally an option to exclude stuff.
      Maybe there is a easy way
      Did you ask on
      https://vld.codeplex.com/discussions

      I know people made in work on linux
      http://doc.qt.io/qtcreator/creator-valgrind-overview.html

      http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress

      So i guess you are looking for something alike for windows

      1 Reply Last reply
      1
      • vishnuV Offline
        vishnuV Offline
        vishnu
        wrote on last edited by
        #3

        @mrjj Thanks for the quick reply.
        Yes. I am now posting this query on https://vld.codeplex.com/discussions. Yes. I am looking for an alternative to valgrind in Windows.

        mrjjM 1 Reply Last reply
        0
        • vishnuV vishnu

          @mrjj Thanks for the quick reply.
          Yes. I am now posting this query on https://vld.codeplex.com/discussions. Yes. I am looking for an alternative to valgrind in Windows.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @vishnu
          Hi
          Just as note
          http://www.drmemory.org/

          But i never tried it on a Qt project.

          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