Memory leak detection in C,C++ codes and Apps
On of the major part of C/C++ native application development is the memory management.Allocation and Deallocation of memory on runtime and cleaning memory before exit is hard to keep in touch while development. If OOP is in the best use this can be minimized but still can be a issue. Specially while loading and using 3rd party dll and libraries can cause unknown issues. Detection of leaks can be done in many ways, code level using detection tools. Code level memory detection is supported by most compilers and there are many libraries to do so. This is almost done in debug mode. _CRT library example of memory detection. This is a set of libraries given my Microsoft to monitor memory status in the application: Before using this you have to include following lines of codes: #ifndef _CRTDBG_MAP_ALLOC #define _CRTDBG_MAP_ALLOC #endif _CRTDBG_MAP_ALLOC #include #include Then after you have to go to a certain function call and check whether there was a m...