|
|
#1 |
|
Valgrind on Mac
Are there any alternatives to Valgrind for finding memory leaks? (or precompiled binaries?)
I don't seem smart enough to install it here, and I don't find any good alternative. Instruments, that comes with Xcode, isn't helping me neither. It keeps saying there are 'living bytes', although Valgrind (on Linux) says everything is ok.
__________________
Mactua.eu | The latest Apple related news! |
|
|
|
0
|
|
|
#2 |
|
Instruments would be fine. Living bytes does not necessarily mean you have a leak, it's the total amount of memory in use at current time.
|
|
|
|
0
|
|
|
#3 |
|
Well, maybe I'm just totally wrong,
but I made a simple Linked List (C++). In that list I add 8 items, which uses dynamic memory. Thus overall number of allocations will be 8. The destructors runs through all items and deletes it. So at the end, there should be 0 living. Instruments says 1.
__________________
Mactua.eu | The latest Apple related news! |
|
|
|
0
|
|
|
#4 | |
|
Quote:
2. We have no idea what your linked list code does. It may delete the items or it may not. |
||
|
|
0
|
|
|
#5 |
|
Well, I placed the code on my website: http://denbeke.be/blog/linked-list-memory-leak/
As I said before, Valgrind says it has no leaks.
__________________
Mactua.eu | The latest Apple related news! |
|
|
|
0
|
|
|
#6 |
|
Nobody who knows an alternative to Valgrind?
__________________
Mactua.eu | The latest Apple related news! |
|
|
|
0
|
|
|
#7 |
|
|
0
|
![]() |
|
| Tags |
| valgrind, xcode |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 11:35 AM.








Linear Mode
