I've killed a nasty bug in the ansistring SetLength() code which corrupted the heap. I think this is the bug that caused all the trouble you had with ansistrings. Peter