<?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: Gem #77: Where did my memory go? (Part 1)</title>
	<atom:link href="http://www.adacore.com/2010/01/11/gem-77/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adacore.com/2010/01/11/gem-77/</link>
	<description>AdaCore technology and news</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:59:19 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anh Vo</title>
		<link>http://www.adacore.com/2010/01/11/gem-77/comment-page-1/#comment-7786</link>
		<dc:creator>Anh Vo</dc:creator>
		<pubDate>Fri, 22 Jan 2010 17:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/?p=3305#comment-7786</guid>
		<description>It just occurred to me that it could be a memory leak if exception is not raised when accessing (Ptr2.all) Ptr2 when normal memory (default pool) used.</description>
		<content:encoded><![CDATA[<p>It just occurred to me that it could be a memory leak if exception is not raised when accessing (Ptr2.all) Ptr2 when normal memory (default pool) used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anh Vo</title>
		<link>http://www.adacore.com/2010/01/11/gem-77/comment-page-1/#comment-7728</link>
		<dc:creator>Anh Vo</dc:creator>
		<pubDate>Thu, 14 Jan 2010 17:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/?p=3305#comment-7728</guid>
		<description>I agree that it is a good thing to raise GNAT.Debug_Pools.Accessing_Deallocated_Storage exception. In fact, if GNAT.Debug_Pools.Debug_Pool is not used (using default pool), the problem is not detected, and exception is not raised at all.</description>
		<content:encoded><![CDATA[<p>I agree that it is a good thing to raise GNAT.Debug_Pools.Accessing_Deallocated_Storage exception. In fact, if GNAT.Debug_Pools.Debug_Pool is not used (using default pool), the problem is not detected, and exception is not raised at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel Briot</title>
		<link>http://www.adacore.com/2010/01/11/gem-77/comment-page-1/#comment-7727</link>
		<dc:creator>Emmanuel Briot</dc:creator>
		<pubDate>Thu, 14 Jan 2010 17:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/?p=3305#comment-7727</guid>
		<description>As pointed out by Duncan, Ptr has been reset to null, so you get a Constraint_Error. Ptr2, however, still has a non null value, and therefore you get another exception. The good thing is that with a different exception it is clearer where the probleme is</description>
		<content:encoded><![CDATA[<p>As pointed out by Duncan, Ptr has been reset to null, so you get a Constraint_Error. Ptr2, however, still has a non null value, and therefore you get another exception. The good thing is that with a different exception it is clearer where the probleme is</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anh Vo</title>
		<link>http://www.adacore.com/2010/01/11/gem-77/comment-page-1/#comment-7726</link>
		<dc:creator>Anh Vo</dc:creator>
		<pubDate>Thu, 14 Jan 2010 16:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/?p=3305#comment-7726</guid>
		<description>Of course, there is missing use My_Package clause in the Main subprogram.

It is rather interesting to find out that (Prt2.all := 2;)statement raising GNAT.Debug_Pools.Accessing_Deallocated_Storage exception. However, (Prt.all := 1;) statement raises Constraint_Error.

Why do they trigger different exception?</description>
		<content:encoded><![CDATA[<p>Of course, there is missing use My_Package clause in the Main subprogram.</p>
<p>It is rather interesting to find out that (Prt2.all := 2;)statement raising GNAT.Debug_Pools.Accessing_Deallocated_Storage exception. However, (Prt.all := 1;) statement raises Constraint_Error.</p>
<p>Why do they trigger different exception?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuel Briot</title>
		<link>http://www.adacore.com/2010/01/11/gem-77/comment-page-1/#comment-7692</link>
		<dc:creator>Emmanuel Briot</dc:creator>
		<pubDate>Mon, 11 Jan 2010 13:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/?p=3305#comment-7692</guid>
		<description>Yes, this is true. In fact, the example might useful be changed into

    Ptr2 : Integer_Access;
    Ptr := new Integer;
    Ptr2 := Ptr;
    Unchecked_Free (Ptr);
    Ptr2.all := 2;  --  raises exception</description>
		<content:encoded><![CDATA[<p>Yes, this is true. In fact, the example might useful be changed into</p>
<p>    Ptr2 : Integer_Access;<br />
    Ptr := new Integer;<br />
    Ptr2 := Ptr;<br />
    Unchecked_Free (Ptr);<br />
    Ptr2.all := 2;  &#8212;  raises exception</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan Sands</title>
		<link>http://www.adacore.com/2010/01/11/gem-77/comment-page-1/#comment-7691</link>
		<dc:creator>Duncan Sands</dc:creator>
		<pubDate>Mon, 11 Jan 2010 13:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/?p=3305#comment-7691</guid>
		<description>I&#039;m not sure that the example says anything about Debug_Pools:
the call to Unchecked_Deallocation will set Ptr to null, so
you would get an exception here whether you used Debug_Pools
or not.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure that the example says anything about Debug_Pools:<br />
the call to Unchecked_Deallocation will set Ptr to null, so<br />
you would get an exception here whether you used Debug_Pools<br />
or not.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

