I have a WinForms 2.0 application with approximately 18 reports created using Microsoft ReportViewer. Every time a report starts, a dynamic assembly (expression_host_xxxxxx.dll) is created. This dynamic assembly is loaded into memory and stays for the remainder of the time using the application resources. Even if we only have 1 report, and we start it, i.e. 3 times, we get 3 such expression_host assemblies in memory.
Is there a way to prevent these assemblies from being created or to unload these assemblies after we finish?
TIA
c # winforms reportviewer
Huberto
source share