Hello,
I've got a problem with memory and pairs. I want to erase an object from this pairs with self.pair[index] = nil but the object is not erase from the pairs. All the parameters of the object are nil but not the object from the pairs. Why? And how can i delete it ? I tried to call the garbage collector but doesn't work.
Thanks,
Beunn
Comments
if yes, you can try using table object for inserting and removing objects from table
table.insert(table, value) or table.insert(table, index, value) and
table.remove(table, index)
http://lua-users.org/wiki/TablesTutorial