Good day! I was eager to implement the Telegram client API, but in the course of development I encountered the problem of "memory leak". All chats, messages, contacts are currently stored in RAM, over time, the rate only increases. Accordingly, the question is: what are the solutions for such tasks?

  • one
    Memory leaks are quite a serious topic. In general, the information can be collected on the whole book. I think it is worthwhile to give the problem code, first using special tools to search for leaks. - pavel
  • First, separate flies from cutlets, that is, memory growth due to data from real memory leaks. Data can be compressed or not stored in memory. For leaks, look with tools that are in memory, but should not be and who holds the resource in memory. And since this is wpf, do not forget about virtualization in the list controls. - vitidev
  • @vitidev thanks a lot! - Anton Man'kov

0