Hi,
I'm sure this is a n00b question but why does multiple clicks of the button in this code run memory up? It's like memory isn't released after each execution.
blank.gif is a "blank" gif of 2.33KB
Sub App_Start
Form1.Show
Image1.LoadPicture("blank.gif")
End Sub
Sub Button1_Click
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Return
End Sub
I'm sure this is a n00b question but why does multiple clicks of the button in this code run memory up? It's like memory isn't released after each execution.
blank.gif is a "blank" gif of 2.33KB
Sub App_Start
Form1.Show
Image1.LoadPicture("blank.gif")
End Sub
Sub Button1_Click
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Image1.LoadPicture("blank.gif")
Return
End Sub