PDA

View Full Version : Memory leak



vvbkumar
30th August 2006, 16:56
hi

I have a C++ project (application).

But unfortunately there are memory leaks in it(I am told so). How do i identify them?
is there any open source tool that does.

i have found one such tool http://www.codeproject.com/tools/leakfinder.asp.

After following the instructions given there, i tried to "make" my project , it says

error LNK2001: unresolved external symbol _DeInitAllocCheck
error LNK2001: unresolved external symbol _InitAllocCheck :confused:

pl do let me know if i have done any mistakes :eek:

pl kindly help me out in this problem :crying:

Thanks in advance

Regards
vvbkumar

e8johan
31st August 2006, 07:19
You can always use valgrind to find leaks and such.

vvbkumar
31st August 2006, 08:01
but can i use valgrind for win XP??? :confused:

i think is not compatible with windows

ball
1st September 2006, 08:22
But seem Valgrind is having many false alarms when used with Qt codes. Is that true?

ponto
2nd September 2006, 15:31
But seem Valgrind is having many false alarms when used with Qt codes. Is that true?

I have never seen a false alarm by valgrind. However valgrind often alarms about constructs that are intended. For example it is not necessary to free memory, when you know that the programm is going to exit right now.