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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,345a8b767542016e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-16 19:00:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc01.gnilink.net.POSTED!53ab2750!not-for-mail Message-ID: <3C9407BD.6020907@mail.com> From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: memory leakages with Ada? References: <3c90af1e@news.starhub.net.sg> <3C923755.7050007@mail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 17 Mar 2002 03:00:35 GMT NNTP-Posting-Host: 162.83.248.253 X-Complaints-To: business-support@verizon.com X-Trace: nwrddc01.gnilink.net 1016334035 162.83.248.253 (Sat, 16 Mar 2002 22:00:35 EST) NNTP-Posting-Date: Sat, 16 Mar 2002 22:00:35 EST Xref: archiver1.google.com comp.lang.ada:21352 Date: 2002-03-17T03:00:35+00:00 List-Id: Kevin Cline wrote: > It's not at all like the C version. > The memory is managed by std::vector, and will be > deallocated in the vector destructor when the scope is exited. But the memory will come from the heap instead of the stack. This has speed and memory implications which are absent from the Ada version.