<p>I have a .exe and many plug-in .dll modules that the .exe loads. (I have source for both.) A cross-platform (with source) solution would be ideal, but the platform can be narrowed to WinXP and Visual Studio (7.1/2003 in my case).</p>

<p>The built-in VS leak detector only gives the line where new/malloc was called from, but I have a wrapper for allocations, so a full symbolic stack trace would be best.</p>

<p>The detector would also be able to detect for a leak in both the .exe and its accompanying plug-in .dll modules.</p>

[{'answer_id': 25747, 'author': 'Anders Sandvig', 'author_id': 1709, 'author_profile': 'https://Stackoverflow.com/users/1709', 'pm_score': 3, 'selected': False, 'text': '<p>I have had good experiences with <a href="http://www.ibm.com/software/awdtools/purify/" rel="noreferrer">Rational Purify</a>. I have also heard nice things about Valgrind\n'}, {'answer_id': 25828, 'author': 'Agnel Kurian', 'author_id': 45603, 'author_profile': 'https://Stackoverflow.com/users/45603', 'pm_score': 1, 'selected': False, 'text': '<p>Try <a href="http://www.codeproject.com/KB/applications/leakfinder.aspx" rel="nofollow noreferrer">Jochen Kalmbach\'s Memory Leak Detector</a> on Code Project.\nThe URL to the latest version was somewhere in the comments when I last checked.</p>\n'}, {'answer_id': 25831, 'author': 'Zooba', 'author_id': 891, 'author_profile': 'https://Stackoverflow.com/users/891', 'pm_score': 6, 'selected': True, 'text': '<p>I personally use <a href="http://vld.codeplex.com" rel="noreferrer">Visual Leak Detector</a>, though it can cause large delays when large blocks are leaked (it displays the contents of the entire leaked block).</p>\n'}, {'answer_id': 1253608, 'author': 'davidag', 'author_id': 11441, 'author_profile': 'https://Stackoverflow.com/users/11441', 'pm_score': 4, 'selected': False, 'text': '<p>If you don\'t want to recompile (as Visual Leak Detector requires) I would recommend <a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools" rel="nofollow noreferrer">WinDbg</a>, which is both powerful and fast (though it\'s not as easy to use as one could desire).</p>\n\n<p>On the other hand, if you don\'t want to mess with WinDbg, you can take a look at <a href="http://msdn.microsoft.com/en-us/library/ff560206%28VS.85%29.aspx" rel="nofollow noreferrer">UMDH</a>, which is also developed by Microsoft and it\'s easier to learn.</p>\n\n<p>Take a look at these links in order to learn more about WinDbg, memory leaks and memory management in general:</p>\n\n<ul>\n<li><a href="http://www.codeproject.com/KB/cpp/MemoryLeak.aspx" rel="nofollow noreferrer">Memory Leak Detection Using Windbg</a></li>\n<li><a href="http://msdn.microsoft.com/en-us/library/c99kz476%28VS.80%29.aspx" rel="nofollow noreferrer">Memory Leak Detection in MFC</a></li>\n<li><a href="http://windbg.info/doc/1-common-cmds.html#20_memory_heap" rel="nofollow noreferrer">Common WinDbg Commands (Thematically Grouped)</a></li>\n<li><a href="http://www.yolinux.com/TUTORIALS/C++MemoryCorruptionAndMemoryLeaks.html" rel="nofollow noreferrer">C/C++ Memory Corruption And Memory Leaks</a></li>\n<li><a href="http://www.memorymanagement.org/" rel="nofollow noreferrer">The Memory Management Reference</a></li>\n<li><a href="http://mcfunley.com/277/using-leakdiag-to-debug-unmanaged-memory-leaks" rel="nofollow noreferrer">Using LeakDiag to Debug Unmanaged Memory Leaks</a></li>\n<li><a href="http://msdn.microsoft.com/en-us/library/ms810466.aspx" rel="nofollow noreferrer">Heap: Pleasures and Pains</a></li>\n</ul>\n'}, {'answer_id': 8180679, 'author': 'MastAvalons', 'author_id': 1028135, 'author_profile': 'https://Stackoverflow.com/users/1028135', 'pm_score': 2, 'selected': False, 'text': '<p>As for me I use <a href="https://www.deleaker.com/" rel="nofollow noreferrer">Deleaker</a> to locate leaks. I am pleased.</p>\n'}, {'answer_id': 10163287, 'author': 'Stewart Lynch', 'author_id': 1019674, 'author_profile': 'https://Stackoverflow.com/users/1019674', 'pm_score': 2, 'selected': False, 'text': '<p>My freely available memory profiler <a href="http://www.puredevsoftware.com/MemPro.htm" rel="nofollow">MemPro</a> allows you to compare 2 snapshots and gives stack traces for all of the allocations.</p>\n'}, {'answer_id': 21907128, 'author': 'Idanuda', 'author_id': 3329199, 'author_profile': 'https://Stackoverflow.com/users/3329199', 'pm_score': 1, 'selected': False, 'text': '<p>As several of my friend has posted there are many free leak detectors for C++.\nAll of that will cause overhead when running your code, approximatly 20% slower.\nI preffer <em>Visual Leak Detector for Visual C++ 2008/2010/2012</em> , you can download the source code from - <a href="http://vld.codeplex.com/" rel="nofollow">enter link description here</a> . </p>\n'}]
['https://Stackoverflow.com/questions/25730', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2666/']