Page 1 of 1

Out of memory in while loop

Posted: Fri 02 Apr 2010 03:16
by LarsDima
I open big table for looking all record.
OraTable.Open();
while not OraTable.Eof do
begin
{something action with record}
OraTable.Next();
end;
OraTable.Close();
Table get > 1.000.000 records. Is it possible to clear the buffer after each statement Next

Posted: Fri 02 Apr 2010 11:03
by bork
If you are not going to use the Prior method or connect TOraTable to VCL controls which can use this method then you can set the property UniDirectional = True and memory will contain as many records as it is defined in the FetchRows property.

Posted: Sun 04 Apr 2010 04:50
by LarsDima
Thanks, it helped