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. Determine memory leak
Forum Updated to NodeBB v4.3 + New Features

Determine memory leak

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 2.1k 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.
  • B Offline
    B Offline
    BoLin
    wrote on last edited by
    #1

    I have encountered a problem in the process of software development, that is, I can not judge whether there is a memory leak at present, and I do not know how the memory is normal. Is there any way to judge? In addition to using memory leak detection tools, can you tell by looking at memory? Does it rely on discriminating commit memory, if possible?

    JoeCFDJ 1 Reply Last reply
    0
    • B BoLin

      I have encountered a problem in the process of software development, that is, I can not judge whether there is a memory leak at present, and I do not know how the memory is normal. Is there any way to judge? In addition to using memory leak detection tools, can you tell by looking at memory? Does it rely on discriminating commit memory, if possible?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @BoLin On Linux or Windows or MacOS?
      On Linux: you can use valgrind or Asan to detect memory leaks.
      On Windows, VS has good tools to detect leaks as well.

      JonBJ 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @BoLin On Linux or Windows or MacOS?
        On Linux: you can use valgrind or Asan to detect memory leaks.
        On Windows, VS has good tools to detect leaks as well.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @JoeCFD
        Be aware that OP already has https://forum.qt.io/topic/146039/memory-leaks-and-memory-fragmentation going. Before people spend effort duplicating suggestions here.

        O 1 Reply Last reply
        0
        • JonBJ JonB

          @JoeCFD
          Be aware that OP already has https://forum.qt.io/topic/146039/memory-leaks-and-memory-fragmentation going. Before people spend effort duplicating suggestions here.

          O Offline
          O Offline
          ollarch
          wrote on last edited by
          #4

          @JonB using multiple threads the problem is solved faster. XD

          JonBJ 1 Reply Last reply
          1
          • O ollarch

            @JonB using multiple threads the problem is solved faster. XD

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @ollarch Yeah, just multiple humans don't work like multiple threads... And we don't Mutex well. :)

            1 Reply Last reply
            2

            • Login

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