TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Joel Seidman <[log in to unmask]>
Date: Wed, 5 Jan 2000 18:46:55 -0800
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=US-ASCII
Reply-To: Joel Seidman <[log in to unmask]>
Parts/Attachments: text/plain (12 lines)
Can someone please explain the following  line from the Ada 83 LRM 13.10.1(8):

"If X designates a task object, the call FREE(X) has no effect on the task designated by the value of this task object....."

The reason I ask is I am looking at a program that uses new and free (instantiation of U.A.) on task access types, and it seems to have a memory leak. Can this be the reason?

If the above paragraph means what it seems to mean to me, the stack space of a task allocated with new cannot be reclaimed. If so, this is very surprising to me (but would explain my memory leak), and I'm curious what the reason would be. Or am I misinterpreting the paragraph?

Thanks for any enlightenment.

-- Joel