In a continuously running application, the following procedure enables memory leak detection at any particular point during program execution:
Note: Besides apparent memory leaks, an application can have other types of leaks that the Memory Analysis tool can't
detect. These include objects with cyclic references, accidental pointer matches, and leftover heap references
(which can be converted to apparent leaks by nullifying heap pointers).
If you continue to see the heap grow after eliminating apparent leaks, you should manually inspect some of the allocations.
You can do this after the program terminates or you can suspend the program and examine the heap state
at any time using the debugger.