You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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