<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>vld Wiki Rss Feed</title><link>http://vld.codeplex.com/wikipage</link><description>vld Wiki Rss Description</description><item><title>New Comment on "Using Visual Leak Detector"</title><link>https://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;ANCHOR#C27379</link><description>the &amp;#34;failed to initialize properly&amp;#34; error was not cured for me.. I feel I&amp;#39;ve been __declspec-ed.</description><author>andersmw</author><pubDate>Fri, 03 May 2013 19:46:15 GMT</pubDate><guid isPermaLink="false">New Comment on "Using Visual Leak Detector" 20130503074615P</guid></item><item><title>New Comment on "Using Visual Leak Detector"</title><link>http://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;ANCHOR#C26822</link><description>After a little fiddling I was able to get your tool working and found my leak problem.  A very nice job.   Here are the issue I found for my application&amp;#47;installation so you can improve the tool and documentation&amp;#58;&amp;#10;1 - I work at a large corporation with strict policies.  When I tried to run my application with VLD enabled, I got an &amp;#39;application failed to initialize properly&amp;#39; error on startup.  This was finally cured by using&amp;#58; CACLS &amp;#34;C&amp;#58;&amp;#92;software&amp;#92;Visual Leak Detector&amp;#92;bin&amp;#34; &amp;#47;E &amp;#47;G BUILTIN&amp;#92;Users&amp;#58;R on the command line.&amp;#10;&amp;#10;2 - The report did not reliably appear unless I explicitly added a call to VLDEnable in my main InitInstance and calling VLDReportLeaks as another commenter posted above.</description><author>JPDworkin</author><pubDate>Sat, 09 Mar 2013 08:35:21 GMT</pubDate><guid isPermaLink="false">New Comment on "Using Visual Leak Detector" 20130309083521A</guid></item><item><title>New Comment on "Using Visual Leak Detector"</title><link>http://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;ANCHOR#C26666</link><description>The instructions for Visual C&amp;#43;&amp;#43; 2010 do not apply as such to Visual C&amp;#43;&amp;#43; 2010 Express.&amp;#10;Some modifications would help&amp;#58; &amp;#10;1. In Properties management, you must select &amp;#39;Debug &amp;#124; Win32&amp;#39; &amp;#40;in my case&amp;#41; before you can select &amp;#39;VC&amp;#43;&amp;#43; Directories&amp;#39;.&amp;#10;2. Once VC&amp;#43;&amp;#43; Directories is selected, the wording &amp;#39;&amp;#34;include file&amp;#34; from the tree&amp;#39; is imprecise&amp;#58; replace with &amp;#34;add VLD&amp;#47;Include in &amp;#39;Include Directories&amp;#39;&amp;#34;.</description><author>raananb</author><pubDate>Sat, 23 Feb 2013 08:38:25 GMT</pubDate><guid isPermaLink="false">New Comment on "Using Visual Leak Detector" 20130223083825A</guid></item><item><title>New Comment on "Frequently Asked Questions"</title><link>http://vld.codeplex.com/wikipage?title=Frequently Asked Questions&amp;ANCHOR#C26082</link><description>My symbol database file is in the same file as the program file, but I&amp;#39;m still getting the error messages.&amp;#10;&amp;#10;The FAQ item says... it &amp;#34;may&amp;#34; mean that it can&amp;#39;t find the PDB file.  What are the other possibilities&amp;#63;</description><author>mikefulton</author><pubDate>Fri, 04 Jan 2013 14:04:22 GMT</pubDate><guid isPermaLink="false">New Comment on "Frequently Asked Questions" 20130104020422P</guid></item><item><title>New Comment on "Using Visual Leak Detector"</title><link>http://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;ANCHOR#C25677</link><description>You may need to add VLDEnable&amp;#40;&amp;#41; function call somewhere in your code to enable the detector or VLDReportLeaks&amp;#40;&amp;#41; to create a report. Though the report will appear only when application exits.</description><author>3axap</author><pubDate>Fri, 23 Nov 2012 12:58:03 GMT</pubDate><guid isPermaLink="false">New Comment on "Using Visual Leak Detector" 20121123125803P</guid></item><item><title>New Comment on "Using Visual Leak Detector"</title><link>http://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;ANCHOR#C25500</link><description>Installed vld, no problem.  Specifically set a function to cause a memory leak.  Within that .cpp file, included &amp;#60;vld.h&amp;#62;.   Called the known memory leaking function multiple times.   Exited the program.   NOTHING IN THE DEBUG OUTPUT WINDOW WHATSOEVER.   What am I missing&amp;#63;</description><author>mjrtstr</author><pubDate>Wed, 07 Nov 2012 02:42:16 GMT</pubDate><guid isPermaLink="false">New Comment on "Using Visual Leak Detector" 20121107024216A</guid></item><item><title>New Comment on "Documentation"</title><link>http://vld.codeplex.com/documentation?&amp;ANCHOR#C25484</link><description>Hi,&amp;#10;It is a good tool and it did help me even so it made a &amp;#34;false positive&amp;#34; report,&amp;#10;One thing though - how do I remove it from Visual Studio&amp;#63; I have MSVS 2010 and after pushing the directories it looks like I can&amp;#39;t get rid of them.</description><author>oneeyeman</author><pubDate>Mon, 05 Nov 2012 23:17:55 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20121105111755P</guid></item><item><title>Updated Wiki: Contributing</title><link>http://vld.codeplex.com/wikipage?title=Contributing&amp;version=3</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Contributing&lt;/h1&gt;
&lt;br /&gt;I encourage developers who&amp;#39;ve added their own features, or fixed bugs they&amp;#39;ve found, to contribute to the project. The full version-controlled source tree is available at this site. &lt;br /&gt;&lt;br /&gt;GitHub Mirror: &lt;a href="https://github.com/KindDragon/vld"&gt;https://github.com/KindDragon/vld&lt;/a&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Wed, 17 Oct 2012 17:12:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Contributing 20121017051250P</guid></item><item><title>Updated Wiki: License</title><link>http://vld.codeplex.com/wikipage?title=License&amp;version=4</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;License&lt;/h1&gt;
&lt;br /&gt;Visual Leak Detector is distributed under the terms of the &lt;a href="http://vld.codeplex.com/license"&gt;GNU Lesser General Public License (LGPL)&lt;/a&gt;. This license allows you to use the VLD library with your own programs without restriction. However, if you build a program (or another library) that is based on the VLD source code, or uses parts of the VLD source code in it, then some restrictions will apply. What this means is that you are free to ship and use the distributed version of the VLD DLL with regular commercial programs. But if you create a modified version of VLD, that modified version must remain &amp;quot;free software&amp;quot;. See the COPYING.txt file for details.&lt;br /&gt;&lt;br /&gt;The Debug Help Library (dbghelp.dll) distributed with this software are not part of Visual Leak Detector and are not covered under the terms of the GNU Lesser General Public License. They are separately copyrighted works of Microsoft Corporation. Microsoft reserves all its rights to its copyrights in the Debug Help Library and Microsoft C Runtime Library. Neither your use of the Visual Leak Detector software, nor your license under the GNU Lesser General Public license grant you any rights to use the Debug Help Library or Microsoft C Runtime Library in &lt;b&gt;ANY WAY&lt;/b&gt; (for example, redistributing them) that would infringe upon Microsoft Corporation&amp;#39;s copyright in the Debug Help Library or Microsoft C Runtime Library.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NO WARRANTY&lt;/b&gt;&lt;br /&gt;BECAUSE VISUAL LEAK DETECTOR (&amp;quot;THE SOFTWARE&amp;quot;) IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE &amp;quot;AS IS&amp;quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.&lt;br /&gt;&lt;br /&gt;IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE LICENSING TERMS SET FORTH ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Wed, 17 Oct 2012 17:11:22 GMT</pubDate><guid isPermaLink="false">Updated Wiki: License 20121017051122P</guid></item><item><title>Updated Wiki: Additional Developers Wanted</title><link>http://vld.codeplex.com/wikipage?title=Additional Developers Wanted&amp;version=3</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Additional Developers Wanted&lt;/h1&gt;
&lt;br /&gt;This project is looking for additional developers who have the time, knowledge, and talent, to help make VLD continue to be a useful utility for the Windows developer community. If you feel that you, than you fix bugs or implement new features and create pull request to project.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Wed, 17 Oct 2012 17:10:37 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Additional Developers Wanted 20121017051037P</guid></item><item><title>Updated Wiki: Home</title><link>http://vld.codeplex.com/wikipage?version=18</link><description>&lt;div class="wikidoc"&gt;
&lt;p&gt;&lt;a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=N3QTYHP9LH6UY&amp;lc=GB&amp;item_name=Visual%20Leak%20Detector&amp;currency_code=USD&amp;bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" target="_blank"&gt;&lt;img src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif" alt="" style="float:right"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Project Description&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
Visual Leak Detector is a free, robust, open-source memory leak detection system for Visual C&amp;#43;&amp;#43;.&lt;br&gt;
&lt;br&gt;
It's pretty easy to use. After installing it, you just need to tell Visual C&amp;#43;&amp;#43; where to find the included header and library file.&lt;br&gt;
&lt;br&gt;
Then it can be used with any C/C&amp;#43;&amp;#43; project simply by adding the following line to your code:&lt;br&gt;
&lt;span class="codeInline"&gt;#include &amp;lt;vld.h&amp;gt; &lt;/span&gt;&lt;br&gt;
&lt;br&gt;
When you run your program under the Visual Studio debugger, Visual Leak Detector will output a memory leak report at the end of your debugging session. The leak report includes the full call stack showing how any leaked memory blocks were allocated. Double-click
 on a line in the call stack to jump to that file and line in the editor window.&lt;br&gt;
&lt;br&gt;
It's a very effective way to quickly diagnose, and fix, memory leaks in C/C&amp;#43;&amp;#43; applications.&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;The main difference&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;between the&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
CRT Debug&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;Library&lt;/span&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt; and&lt;/span&gt;
&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;VLD&lt;/span&gt;,
&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;is that&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;Visual Leak Detector&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;shows&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
you the complete&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
callstack&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;used for&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;memory allocation&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;has led to the&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;leak.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;For example:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;---------- Block 1199 at 0x04BE1058: 136 bytes ----------
Call Stack:
d:\Foobar\FooLog.cpp (26): FooLog::getInstance
d:\Foobar\FooMain.cpp (75): FooMain::init
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): WinMainCRTStartup
0x759A3677 (File and line number not available): BaseThreadInitThunk
0x770C9D42 (File and line number not available): RtlInitializeExceptionChain
0x770C9D15 (File and line number not available): RtlInitializeExceptionChain
Data:
9C 33 2D 6B    74 2A 2D 6B    C8 11 BE 04    00 00 00 00     .3-kt*-k ........
00 00 00 00    70 14 BB 6C    70 14 BB 6C    00 00 00 00     ....p..l p..l....
00 00 00 00    68 14 BB 6C    68 14 BB 6C    00 00 00 00     ....h..l h..l....
00 00 00 00    6C 14 BB 6C    6C 14 BB 6C    20 12 BE 04     ....l..l l..l....
00 00 00 00    CD 00 CD CD    00 00 00 00    01 CD CD CD     ........ ........
68 14 BB 6C    78 33 2D 6B    00 00 00 00    00 00 00 00     h..lx3-k ........
00 00 00 00    01 02 00 00    06 00 00 00    00 00 00 00     ........ ........
00 00 00 00    00 00 00 00    88 11 BE 04    5C 10 BE 04     ........ ....\...
00 00 00 00    20 CD CD CD                                   ........ ........&lt;/pre&gt;
&lt;p&gt;This software is provided &amp;quot;AS IS&amp;quot; without warranty of any kind.&lt;br&gt;
&lt;br&gt;
The project was originally developed by &lt;a href="https://sites.google.com/site/dmoulding/" target="_blank"&gt;
Dan Moulding&lt;/a&gt;, but they are no longer supported. Features of version 2.0 are implemented by Arkadiy Shapkin (me).&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Visual Leak Detector Previous Official Homepage &lt;a href="http://sites.google.com/site/dmoulding/vld" target="_blank"&gt;
http://sites.google.com/site/dmoulding/vld&lt;/a&gt; &lt;/li&gt;&lt;li&gt;CodeProject article: &lt;a href="http://www.codeproject.com/KB/applications/visualleakdetector.aspx" target="_blank"&gt;
Visual Leak Detector - Enhanced Memory Leak Detection for Visual C&amp;#43;&amp;#43;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx" target="_blank"&gt;Finding Memory Leaks Using the CRT Library&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://choorucode.wordpress.com/2010/09/11/visual-leak-detector-investigate-memory-leaks-in-visual-c/" target="_blank"&gt;Visual Leak Detector: Investigate Memory Leaks in Visual C&amp;#43;&amp;#43;&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Sat, 29 Sep 2012 21:43:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120929094350P</guid></item><item><title>New Comment on "Introduction"</title><link>http://vld.codeplex.com/wikipage?title=Introduction&amp;ANCHOR#C24325</link><description>KindDragon, VLD is an excellent tool&amp;#33; I registered on CodePlex just to tell you that.</description><author>nbolton</author><pubDate>Mon, 09 Jul 2012 16:04:30 GMT</pubDate><guid isPermaLink="false">New Comment on "Introduction" 20120709040430P</guid></item><item><title>New Comment on "Using Visual Leak Detector"</title><link>http://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;ANCHOR#C23998</link><description>Just as a note, the setup directions for Visual Studio 2010 also work for Visual Studio 11</description><author>InsideOutCloud</author><pubDate>Fri, 08 Jun 2012 15:56:18 GMT</pubDate><guid isPermaLink="false">New Comment on "Using Visual Leak Detector" 20120608035618P</guid></item><item><title>New Comment on "Additional Developers Wanted"</title><link>http://vld.codeplex.com/wikipage?title=Additional Developers Wanted&amp;ANCHOR#C23903</link><description>i could solve it by copying all files from vld&amp;#39;s &amp;#34;bin&amp;#34; directory &amp;#40;vld_x86.dll, ...&amp;#41; into the same folder as the executable &amp;#40;Debug folder&amp;#41;, and it works well.</description><author>AhmedMostafa85</author><pubDate>Thu, 31 May 2012 20:20:21 GMT</pubDate><guid isPermaLink="false">New Comment on "Additional Developers Wanted" 20120531082021P</guid></item><item><title>Updated Wiki: Configuration Options</title><link>http://vld.codeplex.com/wikipage?title=Configuration Options&amp;version=3</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Configuration Options&lt;/h1&gt;
&lt;br /&gt;There are a several configuration options that control specific aspects of VLD&amp;#39;s operation. These configuration options are stored in the vld.ini configuration file. By default, the configuration file should be in the Visual Leak Detector installation directory. However, the configuration file can be copied to the program&amp;#39;s working directory, in which case the configuration settings in that copy of vld.ini will apply only when debugging that one program.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VLD&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;This option acts as a master on/off switch. By default, this option is set to &amp;quot;on&amp;quot;. To completely disable Visual Leak Detector at runtime, set this option to &amp;quot;off&amp;quot;. When VLD is turned off using this option, it will do nothing but print a message to the debugger indicating that it has been turned off.&lt;/blockquote&gt;
&lt;b&gt;AggregateDuplicates&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;Normally, VLD displays each individual leaked block in detail. Setting this option to &amp;quot;yes&amp;quot; will make VLD aggregate all leaks that share the same size and call stack under a single entry in the memory leak report. Only the first leaked block will be reported in detail. No other identical leaks will be displayed. Instead, a tally showing the total number of leaks matching that size and call stack will be shown. This can be useful if there are only a few sources of leaks, but those few sources are repeatedly leaking a very large number of memory blocks.&lt;/blockquote&gt;
&lt;b&gt;ForceIncludeModules&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;In some rare cases, it may be necessary to include a module in leak detection, but it may not be possible to include vld.h in any of the module&amp;#39;s sources. In such cases, this option can be used to force VLD to include those modules in leak detection. List the names of the modules (DLLs) to be forcefully included in leak detection. If you do use this option, it&amp;#39;s advisable to also add vld.lib to the list of library modules in the linker options of your project&amp;#39;s settings.&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;blockquote&gt;&lt;b&gt;Caution&lt;/b&gt;: Use this option only when absolutely necessary. In some situations, use of this option may result in unpredictable behavior including false leak reports and/or crashes. It&amp;#39;s best to stay away from this option unless you are sure you understand what you are doing.&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;b&gt;MaxDataDump&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;Set this option to an integer value to limit the amount of data displayed in memory block data dumps. When this number of bytes of data have been dumped, the dump will stop. This can be useful if any of the leaked blocks are very large and the debugger&amp;#39;s output window becomes too cluttered. You can set this option to 0 (zero) if you want to suppress data dumps altogether.&lt;/blockquote&gt;
&lt;b&gt;MaxTraceFrames&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;By default, VLD will trace the call stack for each allocated block as far back as possible. Each frame traced adds additional overhead (in both CPU time and memory usage) to your debug executable. If you&amp;#39;d like to limit this overhead, you can define this macro to an integer value. The stack trace will stop when it has traced this number of frames. The frame count may include some of the &amp;quot;internal&amp;quot; frames which, by default, are not displayed in the debugger&amp;#39;s output window (see &lt;b&gt;TraceInternalFrames&lt;/b&gt; below). In some cases there may be about three or four &amp;quot;internal&amp;quot; frames at the beginning of the call stack. Keep this in mind when using this macro, or you may not see the number of frames you expect.&lt;/blockquote&gt;
&lt;b&gt;ReportEncoding&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;When the memory leak report is saved to a file, the report may optionally be Unicode encoded instead of using the default ASCII encoding. This might be useful if the data contained in leaked blocks is likely to consist of Unicode text. Set this option to &amp;quot;unicode&amp;quot; to generate a Unicode encoded report.&lt;/blockquote&gt;
&lt;b&gt;ReportFile&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;Use this option to specify the name and location of the file in which to save the memory leak report when using a file as the report destination, as specified by the &lt;b&gt;ReportTo&lt;/b&gt; option. If no file is specified here, then VLD will save the report in a file named &amp;quot;memory_leak_report.txt&amp;quot; in the working directory of the program.&lt;/blockquote&gt;
&lt;b&gt;ReportTo&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;The memory leak report may be sent to a file in addition to, or instead of, the debugger. Use this option to specify which type of destination to use. Specify one of &amp;quot;debugger&amp;quot; (the default), &amp;quot;file&amp;quot;, or &amp;quot;both&amp;quot;.&lt;/blockquote&gt;
&lt;b&gt;SelfTest&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;VLD has the ability to check itself for memory leaks. This feature is always active. Every time you run VLD, in addition to checking your own program for memory leaks, it is also checking itself for leaks. Setting this option to &amp;quot;on&amp;quot; forces VLD to intentionally leak a small amount of memory: a 21-character block filled with the text &amp;quot;Memory Leak Self-Test&amp;quot;. This provides a way to test VLD&amp;#39;s ability to check itself for memory leaks and verify that this capability is working correctly. This option is usually only useful for debugging VLD itself.&lt;/blockquote&gt;
&lt;b&gt;SlowDebuggerDump&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;If enabled, this option causes Visual Leak Detector to write the memory leak report to the debugger&amp;#39;s output window at a slower than normal rate. This option is specifically designed to work around a known issue with some older versions of Visual Studio where some data sent to the output window might be lost if it is sent too quickly. If you notice that some information seems to be missing from the memory leak report, try turning this on.&lt;/blockquote&gt;
&lt;b&gt;StackWalkMethod&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;Selects the method to be used for walking the stack to obtain call stacks for allocated memory blocks. The default &amp;quot;fast&amp;quot; method may not always be able to successfully trace completely through all call stacks. In such cases, the &amp;quot;safe&amp;quot; method may prove to be more reliable in obtaining the full stack trace. The disadvantage with the &amp;quot;safe&amp;quot; method is that it is significantly slower than the &amp;quot;fast&amp;quot; method and will probably result in very noticeable performance degradation of the program being debugged. In most cases it should be okay to leave this option set to &amp;quot;fast&amp;quot;. If you experience problems getting VLD to show call stacks, you can try setting this option to &amp;quot;safe&amp;quot;.&lt;/blockquote&gt;
&lt;blockquote&gt;If you do use the &amp;quot;safe&amp;quot; method, and notice a significant performance decrease, you may want to consider using the &lt;b&gt;MaxTraceFrames&lt;/b&gt; option to limit the number of frames traced to a relatively small number. This can reduce the amount of time spent tracing the stack by a very large amount.&lt;/blockquote&gt;
&lt;b&gt;StartDisabled&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;Set this option to &amp;quot;yes&amp;quot; to disable memory leak detection initially. This can be useful if you need to be able to selectively enable memory leak detection from runtime, without needing to rebuild the executable; however, this option should be used with caution. Any memory leaks that may occur before memory leak detection is enabled at runtime will go undetected. For example, if the constructor of some global variable allocates memory before execution reaches a subsequent call to VLDEnable, then VLD will not be able to detect if the memory allocated by the global variable is never freed. Refer to the following section on controlling leak detection at runtime for details on using the runtime APIs which can be useful in conjunction with this option.&lt;/blockquote&gt;
&lt;b&gt;TraceInternalFrames&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;This option determines whether or not all frames of the call stack, including frames internal to the heap, are traced. There will always be a number of frames on the call stack which are internal to Visual Leak Detector and C/C++ or Win32 heap APIs that aren&amp;#39;t generally useful for determining the cause of a leak. Normally these frames are skipped during the stack trace, which somewhat reduces the time spent tracing and amount of data collected and stored in memory. Including all frames in the stack trace, all the way down into VLD&amp;#39;s own code can, however, be useful for debugging VLD itself.&lt;/blockquote&gt;
&lt;b&gt;SkipHeapFreeLeaks&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;Determines whether or not report memory leaks when missing HeapFree calls.&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Fri, 20 Apr 2012 16:26:25 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Configuration Options 20120420042625P</guid></item><item><title>New Comment on "Documentation"</title><link>http://vld.codeplex.com/documentation?&amp;ANCHOR#C23004</link><description>Thank you&amp;#33;&amp;#33; I&amp;#39;ve been confounded by multiple memory leaks for the past 2 weeks... the last leak so buried deep down the in 3rd party codes, i nearly gave up.. till I found this application.. you&amp;#39;ve managed to point me to the right direction.. within the hour compared to my many many hours...&amp;#10;&amp;#10;Thanks&amp;#33;&amp;#33; &amp;#94;&amp;#94;</description><author>yilunyou</author><pubDate>Thu, 22 Mar 2012 03:51:22 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120322035122A</guid></item><item><title>New Comment on "Introduction"</title><link>http://vld.codeplex.com/wikipage?title=Introduction&amp;ANCHOR#C22379</link><description>I found this tool to be very useful and easy to use. I think it&amp;#39;s the number one free solution to the memory leaks problem in vs 2010. Thank you so much KindDragon.</description><author>mainantagonist</author><pubDate>Mon, 30 Jan 2012 07:51:14 GMT</pubDate><guid isPermaLink="false">New Comment on "Introduction" 20120130075114A</guid></item><item><title>Updated Wiki: Home</title><link>http://vld.codeplex.com/wikipage?version=17</link><description>&lt;div class="wikidoc"&gt;
&lt;p&gt;&lt;a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=N3QTYHP9LH6UY&amp;lc=GB&amp;item_name=Visual%20Leak%20Detector&amp;currency_code=USD&amp;bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" target="_blank"&gt;&lt;img src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif" alt="" style="float:right"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Project Description&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
Visual Leak Detector is a free, robust, open-source memory leak detection system for Visual C&amp;#43;&amp;#43;.&lt;br&gt;
&lt;br&gt;
It's pretty easy to use. After installing it, you just need to tell Visual C&amp;#43;&amp;#43; where to find the included header and library file.&lt;br&gt;
&lt;br&gt;
Then it can be used with any C/C&amp;#43;&amp;#43; project simply by adding the following line to your code:&lt;br&gt;
&lt;span class="codeInline"&gt;#include &amp;lt;vld.h&amp;gt; &lt;/span&gt;&lt;br&gt;
&lt;br&gt;
When you run your program under the Visual Studio debugger, Visual Leak Detector will output a memory leak report at the end of your debugging session. The leak report includes the full call stack showing how any leaked memory blocks were allocated. Double-click
 on a line in the call stack to jump to that file and line in the editor window.&lt;br&gt;
&lt;br&gt;
It's a very effective way to quickly diagnose, and fix, memory leaks in C/C&amp;#43;&amp;#43; applications.&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;The main difference&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;between the&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
CRT Debug&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;Library&lt;/span&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt; and&lt;/span&gt;
&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;VLD&lt;/span&gt;,
&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;is that&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;Visual Leak Detector&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;shows&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
you the complete&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
callstack&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;used for&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;memory allocation&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;has led to the&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;leak.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;For example:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;---------- Block 1199 at 0x04BE1058: 136 bytes ----------
Call Stack:
d:\Foobar\FooLog.cpp (26): FooLog::getInstance
d:\Foobar\FooMain.cpp (75): FooMain::init
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): WinMainCRTStartup
0x759A3677 (File and line number not available): BaseThreadInitThunk
0x770C9D42 (File and line number not available): RtlInitializeExceptionChain
0x770C9D15 (File and line number not available): RtlInitializeExceptionChain
Data:
9C 33 2D 6B    74 2A 2D 6B    C8 11 BE 04    00 00 00 00     .3-kt*-k ........
00 00 00 00    70 14 BB 6C    70 14 BB 6C    00 00 00 00     ....p..l p..l....
00 00 00 00    68 14 BB 6C    68 14 BB 6C    00 00 00 00     ....h..l h..l....
00 00 00 00    6C 14 BB 6C    6C 14 BB 6C    20 12 BE 04     ....l..l l..l....
00 00 00 00    CD 00 CD CD    00 00 00 00    01 CD CD CD     ........ ........
68 14 BB 6C    78 33 2D 6B    00 00 00 00    00 00 00 00     h..lx3-k ........
00 00 00 00    01 02 00 00    06 00 00 00    00 00 00 00     ........ ........
00 00 00 00    00 00 00 00    88 11 BE 04    5C 10 BE 04     ........ ....\...
00 00 00 00    20 CD CD CD                                   ........ ........&lt;/pre&gt;
&lt;p&gt;This software is provided &amp;quot;AS IS&amp;quot; without warranty of any kind.&lt;br&gt;
&lt;br&gt;
The project was originally developed by Dan Moulding, but they are no longer supported. Features of version 2.0 are implemented by Arkadiy Shapkin (me).&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Visual Leak Detector Previous Official Homepage &lt;a href="http://sites.google.com/site/dmoulding/vld" target="_blank"&gt;
http://sites.google.com/site/dmoulding/vld&lt;/a&gt; &lt;/li&gt;&lt;li&gt;CodeProject article: &lt;a href="http://www.codeproject.com/KB/applications/visualleakdetector.aspx" target="_blank"&gt;
Visual Leak Detector - Enhanced Memory Leak Detection for Visual C&amp;#43;&amp;#43;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx" target="_blank"&gt;Finding Memory Leaks Using the CRT Library&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://choorucode.wordpress.com/2010/09/11/visual-leak-detector-investigate-memory-leaks-in-visual-c/" target="_blank"&gt;Visual Leak Detector: Investigate Memory Leaks in Visual C&amp;#43;&amp;#43;&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Sun, 11 Dec 2011 21:42:12 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20111211094212P</guid></item><item><title>Updated Wiki: Home</title><link>http://vld.codeplex.com/wikipage?version=16</link><description>&lt;div class="wikidoc"&gt;
&lt;p&gt;&lt;a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=shapkin%40neurok%2eru&amp;lc=GB&amp;currency_code=USD&amp;bn=PP%2dDonationsBF%3aundefined%3aNonHosted" target="_blank"&gt;&lt;img src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif" alt="" style="float:right"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Project Description&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
Visual Leak Detector is a free, robust, open-source memory leak detection system for Visual C&amp;#43;&amp;#43;.&lt;br&gt;
&lt;br&gt;
It's pretty easy to use. After installing it, you just need to tell Visual C&amp;#43;&amp;#43; where to find the included header and library file.&lt;br&gt;
&lt;br&gt;
Then it can be used with any C/C&amp;#43;&amp;#43; project simply by adding the following line to your code:&lt;br&gt;
&lt;span class="codeInline"&gt;#include &amp;lt;vld.h&amp;gt; &lt;/span&gt;&lt;br&gt;
&lt;br&gt;
When you run your program under the Visual Studio debugger, Visual Leak Detector will output a memory leak report at the end of your debugging session. The leak report includes the full call stack showing how any leaked memory blocks were allocated. Double-click
 on a line in the call stack to jump to that file and line in the editor window.&lt;br&gt;
&lt;br&gt;
It's a very effective way to quickly diagnose, and fix, memory leaks in C/C&amp;#43;&amp;#43; applications.&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;The main difference&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;between the&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
CRT Debug&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;Library&lt;/span&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt; and&lt;/span&gt;
&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;VLD&lt;/span&gt;,
&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;is that&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;Visual Leak Detector&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;shows&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
you the complete&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;
callstack&lt;/span&gt; &lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;used for&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;memory allocation&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;has led to the&lt;/span&gt;
&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;leak.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span title="Наж&amp;#1084;ите, чтобы увидеть альтернативный перевод"&gt;For example:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;---------- Block 1199 at 0x04BE1058: 136 bytes ----------
Call Stack:
d:\Foobar\FooLog.cpp (26): FooLog::getInstance
d:\Foobar\FooMain.cpp (75): FooMain::init
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (578): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (403): WinMainCRTStartup
0x759A3677 (File and line number not available): BaseThreadInitThunk
0x770C9D42 (File and line number not available): RtlInitializeExceptionChain
0x770C9D15 (File and line number not available): RtlInitializeExceptionChain
Data:
9C 33 2D 6B    74 2A 2D 6B    C8 11 BE 04    00 00 00 00     .3-kt*-k ........
00 00 00 00    70 14 BB 6C    70 14 BB 6C    00 00 00 00     ....p..l p..l....
00 00 00 00    68 14 BB 6C    68 14 BB 6C    00 00 00 00     ....h..l h..l....
00 00 00 00    6C 14 BB 6C    6C 14 BB 6C    20 12 BE 04     ....l..l l..l....
00 00 00 00    CD 00 CD CD    00 00 00 00    01 CD CD CD     ........ ........
68 14 BB 6C    78 33 2D 6B    00 00 00 00    00 00 00 00     h..lx3-k ........
00 00 00 00    01 02 00 00    06 00 00 00    00 00 00 00     ........ ........
00 00 00 00    00 00 00 00    88 11 BE 04    5C 10 BE 04     ........ ....\...
00 00 00 00    20 CD CD CD                                   ........ ........&lt;/pre&gt;
&lt;p&gt;This software is provided &amp;quot;AS IS&amp;quot; without warranty of any kind.&lt;br&gt;
&lt;br&gt;
The project was originally developed by Dan Moulding, but they are no longer supported. Features of version 2.0 are implemented by Arkadiy Shapkin (me).&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Visual Leak Detector Previous Official Homepage &lt;a href="http://sites.google.com/site/dmoulding/vld" target="_blank"&gt;
http://sites.google.com/site/dmoulding/vld&lt;/a&gt; &lt;/li&gt;&lt;li&gt;CodeProject article: &lt;a href="http://www.codeproject.com/KB/applications/visualleakdetector.aspx" target="_blank"&gt;
Visual Leak Detector - Enhanced Memory Leak Detection for Visual C&amp;#43;&amp;#43;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx" target="_blank"&gt;Finding Memory Leaks Using the CRT Library&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a href="http://choorucode.wordpress.com/2010/09/11/visual-leak-detector-investigate-memory-leaks-in-visual-c/" target="_blank"&gt;Visual Leak Detector: Investigate Memory Leaks in Visual C&amp;#43;&amp;#43;&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>KindDragon</author><pubDate>Sun, 11 Dec 2011 21:38:45 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20111211093845P</guid></item><item><title>Updated Wiki: Using Visual Leak Detector</title><link>http://vld.codeplex.com/wikipage?title=Using Visual Leak Detector&amp;version=5</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Using Visual Leak Detector&lt;/h1&gt;
&lt;br /&gt;This section briefly describes the basics of using Visual Leak Detector (VLD).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Important!&lt;/b&gt; : Before using VLD with any Visual C++ project, you must first add the Visual Leak Detector include and library directories to the Visual C++ include and library directory search paths:&lt;br /&gt;&lt;i&gt;For all compiler versions take care to ensure that no junk characters get added when you add the include and library paths. If you browse to the &amp;quot;Program Files(x86) folder using the dialog box provided by Visual Studio and select it you could end up seeing the &amp;quot;%&amp;quot; replacing the &amp;quot;(&amp;quot;. &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;And remember to close and open the Visual Studio IDE once you have modified the default include and library paths which the compiler and linker would always look at.&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;b&gt;Visual C++ 2010&lt;/b&gt;: Go to &lt;i&gt;View -&amp;gt;Property Manager&lt;/i&gt;, select &lt;i&gt;Microsoft.Cpp.Win32.user&lt;/i&gt;. Select &lt;i&gt;VC++ Directories&lt;/i&gt; and then &lt;i&gt;&amp;quot;Include files&amp;quot;&lt;/i&gt; from the tree. Add the &lt;i&gt;include&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Move it to the bottom of the list. Then select &lt;i&gt;&amp;quot;Library files&amp;quot;&lt;/i&gt; from the drop-down menu and add the &lt;i&gt;lib\Win32&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Again, move it to the bottom of the list. Repeat for &lt;i&gt;Microsoft.Cpp.x64.user&lt;/i&gt;, but select &lt;i&gt;lib\Win64&lt;/i&gt; subdirectory instead.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Visual C++ 2005 and 2008&lt;/b&gt;: Go to &lt;i&gt;Tools -&amp;gt; Options -&amp;gt; Projects&lt;/i&gt; and &lt;i&gt;Solutions -&amp;gt; VC++ Directories&lt;/i&gt;. Select &lt;i&gt;&amp;quot;Include files&amp;quot;&lt;/i&gt; from the &lt;i&gt;&amp;quot;Show Directories For&amp;quot;&lt;/i&gt; drop-down menu. Add the &lt;i&gt;include&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Move it to the bottom of the list. Then select &lt;i&gt;&amp;quot;Library files&amp;quot;&lt;/i&gt; from the drop-down menu and add the &lt;i&gt;lib\Win32&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Again, move it to the bottom of the list. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Visual C++ 2003&lt;/b&gt;: Go to &lt;i&gt;Project Properties -&amp;gt; C/C++ -&amp;gt; General -&amp;gt; Additional Include Directories&lt;/i&gt; and add the include subdirectory from the Visual Leak Detector installation directory. Move it to the bottom of the list. Then select &lt;i&gt;Additional Library Directories&lt;/i&gt; and add the &lt;i&gt;lib\Win32&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Again, move it to the bottom of the list. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Visual C++ 6&lt;/b&gt;: Go to &lt;i&gt;Tools -&amp;gt; Options -&amp;gt; Directories&lt;/i&gt;. Select &lt;i&gt;&amp;quot;Include files&amp;quot;&lt;/i&gt; from the &lt;i&gt;&amp;quot;Show Directories For&amp;quot;&lt;/i&gt; drop-down menu. Add the &lt;i&gt;include&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Move it to the bottom of the list. Then select &lt;i&gt;&amp;quot;Library files&amp;quot;&lt;/i&gt; from the drop-down menu and add the &lt;i&gt;lib\Win32&lt;/i&gt; subdirectory from the Visual Leak Detector installation directory. Again, move it to the bottom of the list. &lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;br /&gt;To use VLD with your project, follow these simple steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;In at least one C/C++ source file from your program, include the &lt;i&gt;vld.h&lt;/i&gt; header file. It should not matter which file you add the include statement to. It also should not matter in what order the header is included in relation to other headers. The only exception is &lt;i&gt;stdafx.h&lt;/i&gt; (or any other precompiled header). A precompiled header, such as stdafx.h, must always be the first header included in a source file, so &lt;i&gt;vld.h&lt;/i&gt; must be included after any precompiled headers. &lt;/li&gt;
&lt;li&gt;If your program contains one or more DLLs that you would also like to check for memory leaks, then also include &lt;i&gt;vld.h&lt;/i&gt; in at least one source file from each DLL to be included in leak detection. &lt;/li&gt;
&lt;li&gt;Build the debug version of your program. &lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;&lt;blockquote&gt;&lt;b&gt;Note&lt;/b&gt;: Unlike earlier (pre-1.9) versions of VLD, it is now acceptable to include &lt;i&gt;vld.h&lt;/i&gt; in every source file, or to include it in a common header that is included by many or all source files. Only one copy of the VLD code will be loaded into the process, regardless of how many source files include &lt;i&gt;vld.h&lt;/i&gt;.&lt;/blockquote&gt;
VLD will detect memory leaks in your program whenever you run the debug version. When you run the program under the Visual C++ debugger, a report of all the memory leaks detected will be displayed in the debugger&amp;#39;s output window when your program exits (the report can optionally be saved to a file instead, see &lt;i&gt;ReportFile&lt;/i&gt; under &lt;i&gt;Configuration Options&lt;/i&gt;). Double-clicking on a source file&amp;#39;s line number in the memory leak report will take you to that file and line in the editor window, allowing easy navigation of the code path leading up to the allocation that resulted in the memory leak.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;b&gt;Note&lt;/b&gt;: When you build release versions of your program, VLD will not be linked into the executable. So it is safe to leave &lt;i&gt;vld.h&lt;/i&gt; included in your source files when doing release builds. Doing so will not result in any performance degradation or any other undesirable overhead.&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>pramis</author><pubDate>Sat, 29 Oct 2011 09:18:18 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Using Visual Leak Detector 20111029091818A</guid></item></channel></rss>