Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

PerformanceCounter somehow locks my dll...

$
0
0

Hi,

I use this code from a Windows service:

using (var c = new PerformanceCounter("Process", Working Set", instance, true))
   return c.RawValue;

Which Works, no problems. The problems come when I shutdown the Windows service. My dll is locked for 4 seconds or so, after the service has shut Down. If I remove the PerformanceCounter lines I can delete the dll right after service shutdown.

Is this normal?

--
Werner


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>