Memory Validator is a tool designed to detect memory errors. Why does it include a garbage collection function?
The garbage collection function is provided so that you can reset the leaked memory level to zero whilst doing a debugging test. For example, you may do a test to determine the memory leak exists, and then form a theory as to why that happened. Based on this you may want to remove these leaks prior to retesting with you knowledge of the leak. The garbage collector is not provided to replace the malloc/new allocators. If you require a garbage collection solution there are several vendors of garbage collectors to choose from. We do not offer opinions as to which garbage collection solution to use. We also do not recommend garbage collection as a solution as it always has poor performance when your application consumes as much memory as the machine your application is running on. At this point each pass of the garbage collector will touch all pages and cause very heavy virtual memory paging effects with the consequence performance hit.