Determine memory leak
-
I have encountered a problem in the process of software development, that is, I can not judge whether there is a memory leak at present, and I do not know how the memory is normal. Is there any way to judge? In addition to using memory leak detection tools, can you tell by looking at memory? Does it rely on discriminating commit memory, if possible?
-
I have encountered a problem in the process of software development, that is, I can not judge whether there is a memory leak at present, and I do not know how the memory is normal. Is there any way to judge? In addition to using memory leak detection tools, can you tell by looking at memory? Does it rely on discriminating commit memory, if possible?
-
@BoLin On Linux or Windows or MacOS?
On Linux: you can use valgrind or Asan to detect memory leaks.
On Windows, VS has good tools to detect leaks as well. -
@JoeCFD
Be aware that OP already has https://forum.qt.io/topic/146039/memory-leaks-and-memory-fragmentation going. Before people spend effort duplicating suggestions here.