The Related resource instances table is available only for unmanaged resource instances and shows a list of resource instances that are related to the selected instance. Two resource instances are related to each other if one instance is created during the creation of the other. The list contains two types of related instances, i.e. “Nested instances” and “Outer instance.” A nested instance is a resource instance that was created during the creation of the selected instance. An outer instance is an instance that was being created while the selected instance was created.
For example, while creating a windows handle (HWND) using CreateWindowEx, a bitmap might also get created during the call to CreateWindowEx.
CreateBitmap returns HBITMAP (#123)
CreateWindowEx returns HWND (#124)
In this scenario, the HWND #124 and HBITMAP #123 are related, since the HBITMAP instance was created while CreateWindowEx was still executing. The HBITMAP instance is a nested instance of the HWND instance, and the HWND instance is an outer instance of the HBITMAP instance.
The details of a related resource instance can be viewed by double-clicking the corresponding entry in this list or by selecting Show details from the menu. The list can be sorted by clicking on the column headers. The following information is presented for each entry in this list:
•
System
This column shows the “System”
of the resource instance (e.g., a Windows subsystem such as Gdi or User).
•
Resource
This column shows the name of
the related resource instance.
•
Instance
This column shows the instance
number of the related resource instance.
|
.NET Memory Profiler User Manual © Copyright 2002-2008. SciTech Software AB. For information about .NET Memory Profiler, see the product site at http://memprofiler.com .NET Memory Profiler is developed by SciTech Software AB
|