Vladimir Panteleev: > This problem isn't something that can be easily fixed. Any stray reference > to any node in the list will prevent nodes following it from ever being > deallocated. Whoa, a very long and detailed answer :-) Thank you. Do you know why in LDC this program seems to work in constant memory? Bye, bearophile