I have tried every way to destroy TDictionary
but whenever I have ReportMemoryLeaksOnShutdown
active it always leaves something undetermined.
I already tried to run the list and destroy item to item.
Code:
with foDict.GetEnumerator do
while MoveNext do
Current.Value.Free;
foDict.Free;
As I tried to destroy only foDict.Free;
There is both memory leakage. Anyone there have any suggestions?