Board index » delphi » blob memory consumption problem
Andy
![]() Delphi Developer |
Sun, 12 Dec 2004 01:49:57 GMT
blob memory consumption problem
Jeff, we are having a problem with reading a huge number of photos from a
database. It seems the blob stream does not get freed untill you close the query. We found a ClearBlobCache function that clears it, but its private -- so how can we clear TBlobArray, while iterating through a query? Or would that be a bad thing? Here is some sample code. It loads data from "fromq" and inserts it into (*all TIBDataset's have UniDirectional := True;*) while not fromq.eof do toq.Params[0] := fromq.Fields[0].AsInteger; ms := TVCSIBQuery(fromq).CreateBlobStream(fromq.fields[9], bmRead); ms.free; This code just keeps allocating ram, on a huge basis. Is there a better way Thanks for your time. -Andy (and imaginary friends) |