<?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: 内存泄漏小陷阱</title>
	<atom:link href="http://www.dutor.net/index.php/2009/11/mem-leak-trap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/</link>
	<description>熟读而精思，循序而渐进，厚积而薄发。</description>
	<lastBuildDate>Fri, 10 Feb 2012 00:05:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hou</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-494</link>
		<dc:creator>Hou</dc:creator>
		<pubDate>Mon, 23 Nov 2009 14:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-494</guid>
		<description>严重同意！</description>
		<content:encoded><![CDATA[<p>严重同意！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 候JJ</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-491</link>
		<dc:creator>候JJ</dc:creator>
		<pubDate>Mon, 23 Nov 2009 12:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-491</guid>
		<description>我白痴了</description>
		<content:encoded><![CDATA[<p>我白痴了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 侯捷</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-490</link>
		<dc:creator>侯捷</dc:creator>
		<pubDate>Mon, 23 Nov 2009 05:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-490</guid>
		<description>哦 糊涂了</description>
		<content:encoded><![CDATA[<p>哦 糊涂了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-478</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Thu, 19 Nov 2009 04:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-478</guid>
		<description>char[]只能在栈中，而且char str[]里面str是个常量。不过void fun(char[])比较特殊，这里就是一个char*。</description>
		<content:encoded><![CDATA[<p>char[]只能在栈中，而且char str[]里面str是个常量。不过void fun(char[])比较特殊，这里就是一个char*。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-477</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Thu, 19 Nov 2009 04:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-477</guid>
		<description>你真牛掰！char[]能和char*一样吗？

应该是段错误什么的了……</description>
		<content:encoded><![CDATA[<p>你真牛掰！char[]能和char*一样吗？</p>
<p>应该是段错误什么的了……</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 侯捷</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-476</link>
		<dc:creator>侯捷</dc:creator>
		<pubDate>Thu, 19 Nov 2009 03:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-476</guid>
		<description>哦
那就runtime error呗？
是不是用
char str[] = new char[32];
str = &quot;Hello,world!&quot;;
就可以了？</description>
		<content:encoded><![CDATA[<p>哦<br />
那就runtime error呗？<br />
是不是用<br />
char str[] = new char[32];<br />
str = &#8220;Hello,world!&#8221;;<br />
就可以了？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-475</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Wed, 18 Nov 2009 23:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-475</guid>
		<description>那就出错了，delete只能释放堆上已经分配的空间的空间</description>
		<content:encoded><![CDATA[<p>那就出错了，delete只能释放堆上已经分配的空间的空间</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 侯捷</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-474</link>
		<dc:creator>侯捷</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-474</guid>
		<description>是不是说
初始化时str得到一个地址
用字符串赋值时又得到另一个
然后这时再delete
会释放常量存储区？</description>
		<content:encoded><![CDATA[<p>是不是说<br />
初始化时str得到一个地址<br />
用字符串赋值时又得到另一个<br />
然后这时再delete<br />
会释放常量存储区？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-473</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-473</guid>
		<description>str内容被字符串的地址覆盖了，想delete就不成了。这里需要用strcpy
和全局存储区静态存储区是一回事了，就是编译期决定，运行时始终存在且其大小不变的一块或者几块内存，如果是只读的就被叫做常量区了。</description>
		<content:encoded><![CDATA[<p>str内容被字符串的地址覆盖了，想delete就不成了。这里需要用strcpy<br />
和全局存储区静态存储区是一回事了，就是编译期决定，运行时始终存在且其大小不变的一块或者几块内存，如果是只读的就被叫做常量区了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 侯捷</title>
		<link>http://www.dutor.net/index.php/2009/11/mem-leak-trap/comment-page-1/#comment-472</link>
		<dc:creator>侯捷</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dutor.net/?p=1681#comment-472</guid>
		<description>是因为没有delete么？
常量存储区是什么样的？</description>
		<content:encoded><![CDATA[<p>是因为没有delete么？<br />
常量存储区是什么样的？</p>
]]></content:encoded>
	</item>
</channel>
</rss>

