February 23, 2012

hitesh hitesh
Ant Farmer
38 posts

how to detect memory leaks

Page  
1

hi,

i have create an application for Symbian device.
i am using Qt Creator 2.2.1.
target device is “N95 8GB”. i am using TRK.
there is no any analysis tool.

i want to detect memory leak in my application.
how i can detect it.

16 replies

February 23, 2012

sierdzio sierdzio
Dinosaur Breeder
536 posts

At some time someone is bound to mention one tool here. I will do this now, to save time :) use Valgrind.

 Signature 

(N(:^

February 23, 2012

hitesh hitesh
Ant Farmer
38 posts

from where i can download Valgrind for Qt Creatore 2.2.1 &
which will support TRK.

February 23, 2012

Andre Andre
Mad Scientist
4667 posts

Google is your friend. Notice that a memory leak is not likely to be dependent on your target platform.

 Signature 

Nokia Certified Qt Specialist.
Interested in Qt consultancy and job opportunities.

February 23, 2012

sierdzio sierdzio
Dinosaur Breeder
536 posts

By TRK you mean Trinity Rescue Kit [trinityhome.org]? If so, I have no idea, but it seems to be based on Mandriva, which means it might have RPM installed. Therefore, you can try installing one of these [rpmfind.net].

 Signature 

(N(:^

February 23, 2012

Volker Volker
Mad Scientist
5250 posts

We have a collection of tools on the wiki page Tools for Profiling and Memory Checking

February 23, 2012

sierdzio sierdzio
Dinosaur Breeder
536 posts

@Volker – perfect link, I was not aware of it’s existence.

 Signature 

(N(:^

February 27, 2012

hitesh hitesh
Ant Farmer
38 posts

i am using windows.

February 27, 2012

Andre Andre
Mad Scientist
4667 posts

hitesh wrote:
i am using windows.

Good for you. Did you not see the tools listed on the page Volker linked to? Do you need more than that?

 Signature 

Nokia Certified Qt Specialist.
Interested in Qt consultancy and job opportunities.

February 27, 2012

hitesh hitesh
Ant Farmer
38 posts

by “http://www.valgrind.org/downloads/current.html”
i have download “valkyrie 2.0.0 (tar.bz2)”

it is not exe file.
how to install it & plugin with Qt Creator.
how to use it to detect memory leak…..

February 27, 2012

Andre Andre
Mad Scientist
4667 posts

hitesh wrote:
by “http://www.valgrind.org/downloads/current.html”
i have download “valkyrie 2.0.0 (tar.bz2)”

it is not exe file.
how to install it & plugin with Qt Creator.
how to use it to detect memory leak…..


That tool is listed under Mac OS/X & Linux, not under Windows…

 Signature 

Nokia Certified Qt Specialist.
Interested in Qt consultancy and job opportunities.

February 27, 2012

hitesh hitesh
Ant Farmer
38 posts

which tool i have to used for detecting memory leak in Qt Creator , on windows ?

February 27, 2012

Andre Andre
Mad Scientist
4667 posts

Quoting myself:

Andre wrote:

hitesh wrote:
i am using windows.

Good for you. Did you not see the tools listed on the page Volker linked to? Do you need more than that?

I was referring to this post of Volker:

Volker wrote:
We have a collection of tools on the wiki page Tools for Profiling and Memory Checking
 Signature 

Nokia Certified Qt Specialist.
Interested in Qt consultancy and job opportunities.

February 28, 2012

miroslav miroslav
Hobby Entomologist
177 posts

Hey, we spent a lot of time adding Valgrind support to Qt Creator, now let’s use it :-)

I edited the page to mention that Qt Creator comes with built-in support for memory checking and profiling with Valgrind on Linux and Mac. The situation looks more bleak on Windows, but that is a different problem.

 Signature 

Mirko Boehm | .(JavaScript must be enabled to view this email address) | KDE e.V.
FSFE Fellow
Qt Certified Specialist

February 28, 2012

Andre Andre
Mad Scientist
4667 posts

I would agree, if the situation wasn’t that bleak on Windows or the opening poster wasn’t on a Windows system. As it turns out, he is, so although Valgrind integration in Creator is cool, it is useless in this case:

hitesh wrote:
i am using windows.

 Signature 

Nokia Certified Qt Specialist.
Interested in Qt consultancy and job opportunities.

February 28, 2012

miroslav miroslav
Hobby Entomologist
177 posts

I was referring to the fact that the wiki page did not mention that Valgrind can be used directly from within Qt Creator on the platforms that support it.

 Signature 

Mirko Boehm | .(JavaScript must be enabled to view this email address) | KDE e.V.
FSFE Fellow
Qt Certified Specialist

Page  
1

  ‹‹ [SOLVED] How to tell QtCreator where to store .pro.user settings? For development with different versions      QtCreator 2.4.1 console input ››

You must log in to post a reply. Not a member yet? Register here!