You are not logged in.

1

Friday, December 26th 2008, 2:34pm

Qt memory tracking

Hi guys,

Do you know a way to track the memory in Qt?

Does Qt have some memory manager which can report memory leaks and maybe some detailed report about what parts/classes of Qt take what amount of memory?

Is it possible to overload the new/delete operator for Qt in case Qt doesn't have such a thing? Or how do you check for memory leaks using Qt?

Cheers,


Ben

2

Saturday, December 27th 2008, 12:37pm

just take a look at heap walker.

http://msdn.microsoft.com/en-us/library/aa936214.aspx for windows OS

3

Saturday, December 27th 2008, 3:39pm

Thanks for the reply.

Isn't the heap walker only for mobile/external devices? My app is for normal PC windows. Any ideas?

4

Sunday, December 28th 2008, 12:07am

sorry. I did´not find the heap walker for win32 API. Instead use the User-Mode Dump Heap (UMDH) tool, Umdh.exe

http://msdn.microsoft.com/en-us/library/cc267868.aspx