memory-leaks

How to identify and prevent memory leak no.NET?

I know that CLR has tools like garbage collection, responsible for memory management in .NET applications .one of the functi ... ory to be able to allocate. How to identify these leaks in the .NET application and what practices to adopt to prevent them?

TDictionary, how to destroy it

I have tried every way to Destroy TDictionary but whenever I have the ReportMemoryLeaksOnShutdown active it always leaves som ... ree; foDict.Free; As I tried to also destroy only the foDict.Free; Both memory leaks. Does anyone have any suggestions?

Clear unused object from memory

I have a set that contains millions of Strings and uses a lot of memory, the problem is that after I use it inside a foreach ... info("Cleaning log objects."); logSet = null; logsToBeSaved = null; Runtime.getRuntime().gc(); }