Esta librería es la secuela para C++ de cMemDbg.
Tal como cMemDbg, es una librería muy fácil de usar que sirve para ayudar a detectar y trazar fugas de memoria (memory leaks).
Su utilización es muy similar a la cMemDbg, pero con soporte para los operadores de C++ (new, new[], delete and delete[]).
Hay muchas soluciones para esto en la red, pero esta tiene la particularidad de ser realmente simple de implementar.
>new 003D26D8 36 [Main.cpp:127]
>new 003D2708 36 [Main.cpp:128]
>ERROR Bad free type free => delete 003D2708 36
(Main.cpp:128)
>free 003D2708 36 (Main.cpp:128) [Main.cpp:129]
>free 003D2708 0 [Main.cpp:130]
>ERROR Trying to free unallocated memory: 003D2708
[Main.cpp:130]
>delete[] 003D3EB0 7 (String.cpp:59) [String.h:41]
[...]
>delete[] 003D24F0 4 (String.cpp:59) [String.h:41]
>delete 003D2490 40 (Lista.h:120) [Lista.h:112]
>INFO PROBLEM: Memory leak found (36 bytes)
>INFO Unfreed block 003D26D8 36 [Main.cpp:127]
Keep reading…
Incoming search terms for the article:
Comentarios recientes