Results 1 to 2 of 2

Thread: Detecting memory leaks when using QT Creator on Windows

  1. #1
    Join Date
    Dec 2010
    Qt products
    Qt3 Qt4

    Default Detecting memory leaks when using QT Creator on Windows

    I know threads about memory leak detection have come and gone several times on this forum. But this question is one I cannot let go.

    I am currently developing an application in QT Creator on Windows and am close to finishing up. However, I have the feeling that I might have a memory leak or two. This let me to investigate if there are any leak detection tools that could work on my particular setup. Apparently not. A couple of days ago I posted about this on stackoverflow, and no one there seems to know an answer either. The only thing I can come up with is jumping ship to visual studio and using the CRT to detect memory leaks.

    I am well aware of the fact that strictly seen this is not a QT issue, however it is a question closely related to the software development kit that is distributed. I think it's quite important to make sure the quality of QT-based software is up to standards. Is there anyone who can lead me to a working memory leak detection system for my setup?

  2. #2
    Join Date
    Sep 2009
    Thanked 348 Times in 333 Posts
    Qt products

    Default Re: Detecting memory leaks when using QT Creator on Windows

    Pageheap.exe introduces a software validation layer (Page Heap manager) between the application and the system that verifies all dynamic memory operations (allocations, frees, and other heap operations). When Page Heap manager is enabled, the application that is being tested is then started under a debugger. If a problem is encountered, it will cause a debugger break.

Similar Threads

  1. QT Memory Leaks
    By lukabratzi in forum Qt Programming
    Replies: 17
    Last Post: 28th February 2012, 20:01
  2. Question about detecting memory leaks!
    By jackmack in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2010, 16:30
  3. Memory Leaks
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 20th October 2008, 16:26
  4. Memory leaks..
    By santhoshv84 in forum Qt Programming
    Replies: 2
    Last Post: 28th August 2008, 19:28
  5. memory leaks
    By Fastman in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2008, 08:00

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.