In writing a custom list type for improved performance I am constantly finding memory leaks. Could someone please explain why the following test program shows a memory change of 12 bytes?
Am I missing something obvious?
Framework BRL.Basic Type MyObject Field o:MyObject End Type Local o:MyObject Local mem:Int GCCollect() mem=GCMemAlloced() o = New MyObject 'Create an object o.o = New MyObject 'Create another object o.o = Null 'Now the second object should be deleted at GCCollect() o = Null 'And the first one GCCollect() mem = GCMemAlloced() - mem Print mem
Am I missing something obvious?