The following causes a constant increase in the amount of memory used. Why?
ta!
ta!
' memory test Strict Graphics 640,480,0 Type test Field life Method die() life = life - 1 If life = 0 Then test_list.remove(Self) End Method End Type Global test_list:TList = CreateList() While Not KeyDown(key_escape) create_Test() kill_test() If KeyHit(key_1) Then Print MemAlloced() Flip Cls Wend End ' ### Create a test object Function Create_test() Local NewTest:Test NewTest = New Test NewTest.life = 1 test_List.AddLast( Newtest ) End Function ' ### Run the process that kills the test Function kill_test() For Local ThisTest:test = EachIn test_list ThisTest.die() Next End Function