Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7416879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:35:13+00:00 2026-05-29T07:35:13+00:00

I usually write my classes in C++ and check if they leak memory using

  • 0

I usually write my classes in C++ and check if they leak memory using valgrind on Linux platform. I’m not satisfied until all the heap memory is freed.

Starting to write in Qt, I found how many leaks valgrind detects, also on a simple project. They are so many that it’s difficult to detect my same leaks.

I read somewhere that is possibile to use a suppression files for valgrind which helps filtering out the unwanted leaks, but I can’t find it.

I’m using Ubuntu 11.04 x64, g++ 4.5, Qt 4.7.
Does somebody know how to cope with this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:35:16+00:00Added an answer on May 29, 2026 at 7:35 am

    Did you look at this “Valgrind Suppression File Howto” wiki?

    Just for the record there are some underlying libraries in Qt (especially the ones in the painting process) which always leak small amount of memory. These are the one you need to suppress.

    As you said, you should first create a minimal project, run it to create a valgrind suppression file and then apply that suppression file to your project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when releasing an instance that could exist or not, I usually write this: if
Here is how I usually write the compile task: <compc keep-generated-actionscript=true include-classes=Class1 Class2 com.package.Class3
I usually write C# programs for myself, or just parts of other applications. Now,
I usually write something like this: <mx:VBox height=100% width=155> <mx:Button label=b1 width=100%/> <mx:Buttonlabel=b2 width=100%/>
When I write an SQL statement, I usually write it like this SELECT COUNT(*)
When I retrieve any Scalar value from the database, I usually write code like
Usually i write my where statements as WHERE key=@0 then add a param. Now
I write a lot of .NET based plug-ins for other programs which are usually
Usually Flash and Flex applications are embedded on in HTML using either a combination
How do you deal with them? I have some classes (usually classes that hold

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.