I want to add memory leak detection to our automated unit tests. ReportMemoryLeaksOnShutdown will detect memory leaks. The big problem is that it displays the results in a modal dialog box that the user must manually close. This does not work in the automatic Unit test running on the build server.
Is there a way to redirect output from ReportMemoryLeaksOnShutdown to another location? For example, print the information to a file?
Doko says:
The memory manager scans the memory pool when it shuts down and report all unregistered memory leaks in the message dialog.
I am using Delphi 2010
source
share