{section: Requirements} *: {link:ftp://ftp.microsoft.com/PSS/Tools/Developer%20Support%20Tools/LeakDiag/ LeakDiag} *: Process and Windows System Symbols (for stack trace) {section: Introduction} What follows is an exhaustive tutorial demonstrating ways which a developer can indentify resource leaks in a process. We use a tool called LeakDiag from Microsoft. This tool allows us to see the changes in processes' resource consumption over time. In some cases, a processes' resource consumption may grow in an unbounded manner. A resource leak may be responsible for this behavior. The rest of this document is devoted to identifying these incorrect behaviors and when they may be a problem. So, unlike =umdh.exe=, {quote: LeakDiag} can detect all possible resource leaks in a Windows environment. To do this it uses Microsoft's {link:http://research.microsoft.com/en-us/projects/detours/ Detours} library, which can hook any system or library call and replace it with its own. {section: Conclusion}