c# - Simple app with timer is eating memory away? -


Can anyone explain why the memory of this small app is increasing?

  Fixed class program {Private Static System. Timer Timer _TestTimer; [STAThread] static zero main () {_TestTimer = new system Timer Timer (); _TestTimer.Interval = 30; _TestTimer.Elapsed + = New System Timer Espladeevent Handler (_TestTimer_Elapsed); _TestTimer.Enabled = true; Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); Application.Run (New Form 1 ()); } Fixed zero _TestTimer_Elapsed (Object Sender, System.Timers.ElapsedEventArgs e) {string test = "tick"; Trace.WriteLine (test); Test = null; }}  

Thanks! My suggestion will be crank and it will figure out what the objects are in memory.
Agree that we usually use it as the last option but in this case, it will give you the exact reason for the increase in memory


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -