¿Alguien puede explicar por qué el uso de la memoria de esta pequeña aplicación sigue aumentando?¿La aplicación simple con temporizador está consumiendo la memoria?
static class Program
{
private static System.Timers.Timer _TestTimer;
[STAThread]
static void Main()
{
_TestTimer = new System.Timers.Timer();
_TestTimer.Interval = 30;
_TestTimer.Elapsed += new System.Timers.ElapsedEventHandler(_TestTimer_Elapsed);
_TestTimer.Enabled = true;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
static void _TestTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
string test = "tick";
Trace.WriteLine(test);
test = null;
}
}
¡Gracias! Pika81
¿Qué tan rápido estamos hablando aquí? – ChaosPandion
Además, ¿el uso de memoria se estabiliza/limita en un cierto nivel? – theburningmonk
@Greg - Sabes que tampoco sabemos qué está pasando en 'Form1'. – ChaosPandion