<?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: NET Foundations &#8211; Memory model (part 2)</title>
	<atom:link href="http://blog.vuscode.com/malovicn/archive/2008/01/13/net-foundations-memory-model-part-2.aspx/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.vuscode.com/malovicn/archive/2008/01/13/net-foundations-memory-model-part-2.aspx</link>
	<description>Coding dreams since 1998!</description>
	<lastBuildDate>Thu, 17 Jan 2013 18:15:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: heretyk</title>
		<link>http://blog.vuscode.com/malovicn/archive/2008/01/13/net-foundations-memory-model-part-2.aspx#comment-204</link>
		<dc:creator>heretyk</dc:creator>
		<pubDate>Mon, 05 May 2008 11:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-204</guid>
		<description><![CDATA[&lt;p&gt;my previous post wasn&#039;t correct. in fact .net allocates memory in this line: hlp.Image=new byte[90000];, but hlp.Image goes to virtual memory, not physical.&lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>my previous post wasn&#8217;t correct. in fact .net allocates memory in this line: hlp.Image=new byte[90000];, but hlp.Image goes to virtual memory, not physical.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heretyk</title>
		<link>http://blog.vuscode.com/malovicn/archive/2008/01/13/net-foundations-memory-model-part-2.aspx#comment-203</link>
		<dc:creator>heretyk</dc:creator>
		<pubDate>Sat, 29 Mar 2008 17:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-203</guid>
		<description><![CDATA[&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;i wonder about this line: &quot;hlp.Image=new byte[90000];&quot; is that really causes allocating memory on LOH heap?&lt;/p&gt;
&lt;p&gt;try to see how memory is used when you add this lines:&lt;/p&gt;
&lt;p&gt;Console.ReadLine();&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;for (int i = 0; i &lt; 90000; i++)&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;hlp.Image[i] = 1;&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;Console.ReadLine();&lt;/p&gt;
&lt;p&gt;after hlp.Image=new byte[90000];&lt;/p&gt;
&lt;p&gt;i think that .net is waiting with allocating memory until first use.&lt;/p&gt;
&lt;p&gt;what do you thing about it?&lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>hi</p>
<p>i wonder about this line: &quot;hlp.Image=new byte[90000];&quot; is that really causes allocating memory on LOH heap?</p>
<p>try to see how memory is used when you add this lines:</p>
<p>Console.ReadLine();</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; 90000; i++)</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hlp.Image[i] = 1;</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.ReadLine();</p>
<p>after hlp.Image=new byte[90000];</p>
<p>i think that .net is waiting with allocating memory until first use.</p>
<p>what do you thing about it?</p>
<p>cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
