<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>onigashima</author_name>
  <author_url>https://blog.hatena.ne.jp/onigashima/</author_url>
  <blog_title>文書の形</blog_title>
  <blog_url>https://cnloni.hatenablog.com/</blog_url>
  <categories>
    <anon>IT</anon>
  </categories>
  <description>MFCを使用している時は良いが、それ以外の時はデバッグモードでメモリリークを検出してくれない。これについては、Microsoft のサイトにも説明がある。要約すると #ifdef _DEBUG #define _CRTDBG_MAP_ALLOC #include &lt;stdlib.h&gt; #include &lt;crtdbg.h&gt; #endif をプログラムの先頭に加える。stdafx.h に加えるのが良い。さらに、プログラムの終了直前に、 _CrtDumpMemoryLeaks();を実行する。ただし、エラー終了など終了点が一定でない場合にも対応するには、main 関数（_tmain）の先頭で _C…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcnloni.hatenablog.com%2Fentry%2F20101018%2F1287372227&quot; title=&quot; [Visual C++] メモリリークを検出する - 文書の形&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-10-18 12:23:47</published>
  <title> [Visual C++] メモリリークを検出する</title>
  <type>rich</type>
  <url>https://cnloni.hatenablog.com/entry/20101018/1287372227</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
