I understand that TList will use HEAP memory.
Is it possible to set the heap size during runtime to be as much as possible ?
I need to be able to allocate huge memory in the RAM to store larga data.
Also, this is strange, I put this code in a button click event :
I := 0;
Label1.Caption := '';
done := FALSE;
while not done do
done := TRUE;
Label1.Caption := IntToStr(I);
First click, I = 100 ... and exception occured (Out Of Memory).
But I still can click for the second, third time. Each time, variable I is about 100.
Is the Out of Memory error only temporary ? and then TList will free the memory automatically ?