This zip includes the source code for MemLeakCheck and two dlls

MemLeakCheckat.dll (.lib) - This one can be used to auto free

MemLeakCheckt.dll (.lib) - This one gives diagnostic reports of the locations
                           of memory leaks as well as auto freeing them.

Be sure to set up your header appropriately depending on which you use
- define cl_mem_leak_check  for MemLeakCheckta.dll  and also define
cl_mem_leak_diagnostics for MemLeakCheckt.dll
and also be sure to define LINK_MEMLEAK_CHECK_AS_DLL

You can define cl_qsort_pointers to sort the diagnostic report by
file names, then line numbers, then pointer size - but this qsort will
be slow if you have large nubers of pointers.

In your source code call MemLeakCheckAndFree() when your program is about to exit 
and has freed all the memory it is going to free.

Also for a Windows app, be sure to set your own MemLeakLogProc and MemLeakWarnProc.

For details of use and options, see MemLeakCheckta.h or for a more "user friendly"
presentation, the home page

http://www.tunesmithy.co.uk/memleakcheck/index.htm

Robert Walker
support@tunesmithy.co.uk

