Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

ofan/memcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Summary This module overloaded the default new & delete operators. And it can help programmer to trace memory allocating & freeing.

#Features

  • Tracing memory allocating & freeing with giving useful information.
  • Automatically check memory leak and give warnings when the program exits.
  • Checking memory leak manually on runtime.
  • The project is in Public Domain.

#Usage

  1. Include "memcheck.h" where you want to check memory leak.
  2. Compile your sources & memcheck.cpp
  3. Link memcheck.cpp with your program

NOTE:"memcheck.h" must be included after other standard headers

    #include <vector>
    #include "memcheck.h"//Right

    /******************************/

    #include "memcheck.h" //WRONG!
    #include <vector>

#Contribution Currently this is just a toy project, it's not even thread-safe. Any kinds of contribution is welcome!

About

A C++ library for memory leak detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages