Hi, a while ago I asked if I can assume the memory held by dynamic arrays is allocated in one contiguous block.
The answer was sth. like "No, never!". I wrote a small testing programm using SetLenght() on an array multiple times using a bigger size every time and comparing the addresses of the allocated elements. I wasn't able to provoke getting something else than sizeof(integer), which is the base type of that array. My question: In which cases will it happen that the memory of a dynamic array is fragmented into multiple non-contiguous blocks? TIA, Marc _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal