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
QtWS25 Last Chance

Determine memory leak

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.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.
  • B Offline
    B Offline
    BoLin
    wrote on 28 Jun 2023, 14:21 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?

    J 1 Reply Last reply 28 Jun 2023, 15:06
    0
    • B BoLin
      28 Jun 2023, 14:21

      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?

      J Offline
      J Offline
      JoeCFD
      wrote on 28 Jun 2023, 15:06 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.

      J 1 Reply Last reply 28 Jun 2023, 16:42
      0
      • J JoeCFD
        28 Jun 2023, 15:06

        @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.

        J Offline
        J Offline
        JonB
        wrote on 28 Jun 2023, 16:42 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 28 Jun 2023, 16:44
        0
        • J JonB
          28 Jun 2023, 16:42

          @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 28 Jun 2023, 16:44 last edited by
          #4

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

          J 1 Reply Last reply 28 Jun 2023, 16:54
          1
          • O ollarch
            28 Jun 2023, 16:44

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

            J Offline
            J Offline
            JonB
            wrote on 28 Jun 2023, 16:54 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

            2/5

            28 Jun 2023, 15:06

            • Login

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