Page History

Turn Off History

Requirements

Introduction

What follows is an exhaustive tutorial demonstrating ways which a developer can indentify resource leaks in a process. We use a tool called the "Application Verifier" 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.

Microsoft describes the Application Verifier as "a runtime verification tool for unmanaged code that assists in finding subtle programming errors that can be difficult to identify with normal application testing. Run the Application Verifier tests on your code to identify issues within heaps, handles, and locks."

So, unlike umdh.exe the Application Verifier can detect possible resource leaks in a Windows environment. To do this it uses Microsoft's Detours library, which can hook any system or library call and replace it with its own.

Conclusion