4万行记录 FDQuery查询 Out of memory
sql server 可以查询成功
First chance exception at $7505D722. Exception class EOutOfMemory with message ‘Out of memory‘. Process aa.exe (10212)
function TFDDatSRow.AllocBuffer: PByte;
begin
ASSERT(Table.Columns.StorageSize <> 0);
GetMem(Result, Table.Columns.StorageSize);
FillChar(Result^, Table.Columns.StorageSize, 0);
// We does‘t need the following call, if to follow the rule - memory area
// filled by the zero‘s is an empty value of any data type.
// InternalInitComplexData(Result);
end;
原文:https://www.cnblogs.com/cb168/p/10884614.html