ehm, it seems that it was too long ago that I worked on that code. Indeed I flip-flopped one more time it seem, and I also decided to grow only based on memory usage. The element size is used just to round the result to a multiple of the element size... (this can have a large impact with arrays with few large elements, I think it is correct) Fawzi