okay, you found the nexus laugh
the nexus does not work like normal memory
you can allocate memory, but you can never give it back to reallocate it

so the solution for you is the reusing of your segments
just store all entities an array and shift through them
if you "remove" an entity, just set it to invisible and passable
if you use it again set it to the wanted position and show it again


Visit my site: www.masterq32.de