Working with large arrays - OutOfRam
问题 I have an algorithm where I create two bi-dimensional arrays like this: TYPE TPtrMatrixLine = array of byte; TCurMatrixLine = array of integer; TPtrMatrix = array of TPtrMatrixLine; TCurMatrix = array of TCurMatrixLine; function x var PtrsMX: TPtrMatrix; CurMx : TCurMatrix; begin { Try to allocate RAM } SetLength(PtrsMX, RowNr+1, ColNr+1); SetLength(CurMx , RowNr+1, ColNr+1); for all rows do for all cols do FillMatrixWithData; <------- CPU intensive task. It could take up to 10-20 min end;