Debugging Tools for Windows |
You can use Gflags to enable, disable, and configure the Object Reference Tracing feature of Windows. Object Reference Tracing records sequential stack traces whenever an object reference counter is incremented or decremented. The traces can help you to detect object reference errors, including double-dereferencing, failure to reference, and failure to dereference objects. This feature is supported only in Windows Vista and later versions of Windows. For detailed information about this feature, see Object Reference Tracing.
To enable Object Reference TracingYou must limit the trace to objects with specified pool tags, to objects created by a specified process, or both.
For example, Fred;Tag1.
When you specify both pool tags and a process, the trace includes objects that are created by the process that have any of the specified pool tags.
When you select Permanent, the trace is retained until you disable object reference tracing, or shut down or restart Windows.
The following illustration shows Object Reference Tracing enabled on the Kernel Flags tab. This trace will include only objects that were created by the notepad.exe process that have the pool tag Fred or Tag1. Because this is a run time (kernel flags) setting, the trace starts immediately. If it were a registry setting, you would have to restart Windows to start the trace.
To disable Object Reference Tracing