Software debugging when a great knowledge, to have a very good foundation, a wide range of knowledgeable, very good tools, very good many very comprehensive debugging methods, but also very patient ...
If the program is in the process of running memory leaks, this is the problem to be dealt with;
1: General except print debugging information, log log, breakpoint debugging, and view stack;
2: Through the debug run, and finally close the program, in output to look for memory leakage address;
3: Shielding all possible leakage of the place, until the operation did not leak, and then gradually release the shielding code, and gradually debug;
The above debugging method is the most commonly used software debugging methods, if it is a small problem, can generally be solved, if encountered more difficult to capture the memory leak, it is necessary to rely on good debugging tools and methods;
two books on software debugging are recommended here:
"Software Debugging", Zhang Banque, electronic industry publishing house;
"Windows Advanced Debugging Chinese Version" (US) Mario Hewardt, Daniel Pravat, Nie Shejun, etc.