From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4bd6ca8f7a1eb225 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.56.163 with SMTP id b3mr1579408pbq.0.1322617066629; Tue, 29 Nov 2011 17:37:46 -0800 (PST) Path: lh20ni40938pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Re: Class with task destructor Date: Tue, 29 Nov 2011 17:11:21 -0800 (PST) Organization: http://groups.google.com Message-ID: <24938373.1788.1322615481874.JavaMail.geo-discussion-forums@yqjo5> References: <30604696.94.1322013045135.JavaMail.geo-discussion-forums@yqzz20> Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 187.34.116.252 Mime-Version: 1.0 X-Trace: posting.google.com 1322617066 13568 127.0.0.1 (30 Nov 2011 01:37:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 30 Nov 2011 01:37:46 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=187.34.116.252; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 X-Google-Web-Client: true Xref: news1.google.com comp.lang.ada:19247 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-11-29T17:11:21-08:00 List-Id: > You ought to wait until the task has terminated before freeing it. How could I wait for the task termination? Could be something like procedure Destruct (T : access Test_Class) is T_Ptr : Test_Class_Ptr := Test_Class_Ptr (T); begin T.Primary.Finish; DelayUntilTaskTermination (T_Ptr.Primary); Free (T_Ptr); end Destruct; ? But is there some package with something like it?