<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MS Visual C++ and SDL</title>
	<atom:link href="http://illogictree.com/blog/2009/04/msv-cplusplus-sdl/feed/" rel="self" type="application/rss+xml" />
	<link>http://illogictree.com/blog/2009/04/msv-cplusplus-sdl/</link>
	<description>Development In Any Colour You Like, Logical or Otherwise</description>
	<lastBuildDate>Sun, 25 Dec 2011 20:08:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Eddie</title>
		<link>http://illogictree.com/blog/2009/04/msv-cplusplus-sdl/comment-page-1/#comment-538</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Wed, 22 Apr 2009 08:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://illogictree.com/?p=522#comment-538</guid>
		<description>Ah, if only I knew....

Anyhow, thanks a lot for this scrumptious tip!</description>
		<content:encoded><![CDATA[<p>Ah, if only I knew&#8230;.</p>
<p>Anyhow, thanks a lot for this scrumptious tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Roberts</title>
		<link>http://illogictree.com/blog/2009/04/msv-cplusplus-sdl/comment-page-1/#comment-537</link>
		<dc:creator>David Roberts</dc:creator>
		<pubDate>Tue, 21 Apr 2009 16:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://illogictree.com/?p=522#comment-537</guid>
		<description>Ah yeah, in terms of reporting the memory leaks, it will only give line/file info for malloc/free (by tracking I thought you meant detecting them to begin with)

However, I believe you can redefine new with 

#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) 

and it will fully report the leak details.  (You don&#039;t need to do anything for delete). Note that some special/internal allocations won&#039;t provide line/file info regardless of what you do though - I&#039;m not sure whether STL containers full under that banner</description>
		<content:encoded><![CDATA[<p>Ah yeah, in terms of reporting the memory leaks, it will only give line/file info for malloc/free (by tracking I thought you meant detecting them to begin with)</p>
<p>However, I believe you can redefine new with </p>
<p>#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) </p>
<p>and it will fully report the leak details.  (You don&#8217;t need to do anything for delete). Note that some special/internal allocations won&#8217;t provide line/file info regardless of what you do though &#8211; I&#8217;m not sure whether STL containers full under that banner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://illogictree.com/blog/2009/04/msv-cplusplus-sdl/comment-page-1/#comment-536</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Mon, 20 Apr 2009 21:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://illogictree.com/?p=522#comment-536</guid>
		<description>Hm, odd, for some reason, I wasn&#039;t able to attain the file/line number for C++ apps. Do you have any tips to get it working for C++?</description>
		<content:encoded><![CDATA[<p>Hm, odd, for some reason, I wasn&#8217;t able to attain the file/line number for C++ apps. Do you have any tips to get it working for C++?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Roberts</title>
		<link>http://illogictree.com/blog/2009/04/msv-cplusplus-sdl/comment-page-1/#comment-535</link>
		<dc:creator>David Roberts</dc:creator>
		<pubDate>Mon, 20 Apr 2009 16:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://illogictree.com/?p=522#comment-535</guid>
		<description>&quot;but for some reason, it only tracks memory C-esque leaks (such as malloc and free) but not on C++ memory allocation functions (new and delete)&quot;

The default new handler calls malloc by default, so unless you use memory pooling, this shouldn&#039;t make any difference.</description>
		<content:encoded><![CDATA[<p>&#8220;but for some reason, it only tracks memory C-esque leaks (such as malloc and free) but not on C++ memory allocation functions (new and delete)&#8221;</p>
<p>The default new handler calls malloc by default, so unless you use memory pooling, this shouldn&#8217;t make any difference.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

