microsoft-performance-toolkit-sdk icon indicating copy to clipboard operation
microsoft-performance-toolkit-sdk copied to clipboard

Loading a type multiple times during assembly discovery doesn't cleanup properly

Open jmaxson-ms opened this issue 1 year ago • 0 comments

Describe the bug If a DLL exists in multiple directories, it may be loaded and its types enumerated multiple times during assembly discovery. When this happens, the second time a type is loaded as a ProcessingSourceReference (for example), no references to it are kept, but it is not properly disposed of.

To Reproduce Steps to reproduce the behavior:

  1. Create a plugin that uses feature X/does Y
  2. Load the plugin with WPA/the Engine
  3. Perform actions ...

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior A clear and concise description of what actually happens.

Screenshots If applicable, add screenshots to help explain your problem.

Version information (please complete the following information):

  • SDK version:
  • Engine version (if applicable):
  • WPA version (if applicable):

Additional context Add any other context about the problem here.

jmaxson-ms avatar Sep 27 '23 22:09 jmaxson-ms