GetProcessesByName will load so much DLLs but never UNLOAD

  • Thread starter Thread starter Peter Stojkovic
  • Start date Start date
P

Peter Stojkovic

I am searching for a special process.

When I call GetProcessesByName( name_of_searched_process )

a lot of DLLs ( over 30) will be loaded, but NEVER unloaded.

I can see this in the output window of the debugger .

( I believe from all running processes )

Is this a problem ??



How can I force to unload these DLL'S



Thanks for any help
 
Most of them are performance counter libraries, remember the performance
counters are (partly) available through the Process class. Calling this
method is costly when considering the Working set, so only call them when
absolutely necessary.
(just like all classes in System.Diagnostics - now you understand why the
namespace is called Diagnostics, right).

Willy.
 
Back
Top