Search Results for

    Show / Hide Table of Contents

    Related resource instances

    The Related resource instances panel is available only for native 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.

    Call CreateWindowEx
    
            Call CreateBitmap
    
            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.

    In This Article
    Back to top

    © Copyright 2002-2020. SciTech Software AB.
    For information about .NET Memory Profiler, see the product site at https://memprofiler.com