Simple 2 second timer :
private void Timer_Tick(object sender, EventArgs e)
double phy_mem = Process.GetCurrentProcess().WorkingSet64;
Profiling show ever increasing UnDisposed on real time graph. Taskmanager shows slight memory increase but seems to indicate garbage collector does handle it eventually.
Replacing the above process getcurrentprocess workingset64 line with:
using(System.Diagnostics.Process x = Process.GetCurrentProcess())
phy_mem = x.WorkingSet64;
Profiler real time graph for process clean, taskmanager shows no memory increase or fluctuation.
Users browsing this forum: No registered users and 17 guests