Memory usage always increas,why?

  • Thread starter Thread starter gqg
  • Start date Start date
G

gqg

hi
I write a simple VC# program in Win CE.It only do just one task:


private void timer1_Tick(object sender, System.EventArgs e)
{ f=!f;
if (f)
{
pictureBox1.Image=imageList1.Images[2];
}
else
{
pictureBox1.Image=imageList1.Images[1];
}
}
But the Memory usage always increase,later Win CE Pop up a dialog box
,tell me "OUT Memory".Why?Thanks.
 
Back
Top