On Tue, 4 Apr 2017 16:46:02 +0200 Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote: >[...] > SetLength() allocates a single block of memory, To avoid misunderstanding: SetLength(a,dim1,dim2) allocates one block for the dim1 array and then for each element another block. Mattias