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

Memory leak ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.3k 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.
  • G Offline
    G Offline
    great88
    wrote on last edited by
    #1

    My application is slowly increasing in memory usage while running . I tried shutting off all image loading and animation but memory is still increasing . The only thing that is happening is the application is continually receiving messages from a server through the tcpsocket . Is there a tool to find out what is going on or is there a known common issue here ? I tried VLD memory leak tool but i am currently having compile errors .

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      It's very hard to say without seeing your code!

      But please don't post your complete code. I would recommend you try to isolate the "problematic" code. That is: Try to cut down your program to the bare minimum that can reproduce the memory leak...

      --

      BTW: I have used VLD on Windows and it's a great tool to locate memory leaks with MSVC. Just be sure you compile your program with Debug symbols and you link against the Debug version of Qt. Also, put the required DLL's (vld_x86.dll + dbghelp.dll) and the Manifest into the program directory.

      Other tools would be "Dr. Memory" for Windows. And of course there is Valgrind, which probably is the best free tool, but only for Linux/GCC.

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pkj__
        wrote on last edited by
        #3

        What are you doing with all the messages you are receiving? Are you clearing your bytearray or similar ds to store the messages?
        Are you showing the messages in some text area? Are you clearing it frequently?
        Those can be some wild guesses

        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