Disposeing an object

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,530
Location
Lansing, MI; USA
Programming Experience
10+
how do i dispose of an object when i remove it from the form's controls collection?

right now i use Me.Controls.RemoveAt(intStartSnake) to remove it, so objects are being added and removed every second, but that chews up huge amounts of memory cause even though the object isnt "on the form" it's still in memory until the game is exited
 
Back
Top