I have a dataset (Offers: TBufDataset;) where I have stored all "discounts & offers".
Offers.Filter := 'type = 0'
Offers.Filtered := True;
We have 9 kind of offers. The dataset is Filtered to look for the kind of offer, say offer type 0, offer type 1, and so on.
That procedure grows a lot the memory usage of the program every time is called. If I remove the filter lines, saying there are no offers, there is no leak.
It can be that filtering can cause memory grow, but no memory leak is found at the end of the program?