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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a5bde054ac3effc5 X-Google-Attributes: gid103376,public From: Andy Askey Subject: Re: Unbounded string deallocation Date: 1999/08/30 Message-ID: <37CAC990.554B894C@res.raytheon.com>#1/1 X-Deja-AN: 518949712 Content-Transfer-Encoding: 7bit References: <37C46FD4.A42CC1A1@res.raytheon.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@swl.msd.ray.com X-Trace: swlmail.msd.ray.com 936033153 18167 199.46.172.100 (30 Aug 1999 17:12:33 GMT) Organization: Raytheon Systems Company Mime-Version: 1.0 NNTP-Posting-Date: 30 Aug 1999 17:12:33 GMT Newsgroups: comp.lang.ada Date: 1999-08-30T17:12:33+00:00 List-Id: Thanx to all who provided info. It appears the unbound strings allocation/deallocation will significantly reduce the amount of code I will have to write for my application. Andy Andy Askey wrote: > > I am looking into using Ada.Strings.Unbounded for dynamically creating > temporary storage of character arrays. When I am finished processing > the string, I want to deallocate it. I found a "Free" routine in the > spec but this uses a pointer to STRING and not UNBOUNDED_STRING. > > From the Apex ada.strings.unbounded.1.ada => > > type Unbounded_String is private; > type String_Access is access all String; > procedure Free (X : in out String_Access); > > Can anyone help me out with the deallocation? Anyone have a better idea > for dynamically allocating and deallocating memory for a small to medium > size byte array? > > Thanx. > -- > --------------------------------------------------- > | Andy Askey | > | Software Engineer | > | Raytheon Systems Company | > | 670 Discovery Drive, Huntsville, AL 35806 | > | Phone: (256) 971-2367 Fax: (256) 971-2306 | > | andrew_j_askey@res.raytheon.com | > --------------------------------------------------- -- --------------------------------------------------- | Andy Askey | | Software Engineer | | Raytheon Systems Company | | 670 Discovery Drive, Huntsville, AL 35806 | | Phone: (256) 971-2367 Fax: (256) 971-2306 | | andrew_j_askey@res.raytheon.com | ---------------------------------------------------