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