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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a6c65cbc407987fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-18 09:26:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-mue1.dfn.de!newsfeed.stueberl.de!news2.euro.net!uunet!sac.uu.net!lore.csc.com!baen1673807.greenlnk.net!baen1673807!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: dynamic multithreading Date: 18 Nov 2002 16:21:36 +0000 Organization: Alenia Marconi Systems, ISD, Farlington Sender: sjw@galadriel.frlngtn.gecm.com Message-ID: References: <3DD3D841.CD16A4CB@canal-plus.fr> <8MCB9.8643$8o1.1371873@news.xtra.co.nz> <3DD8AEAC.241AD1F8@canal-plus.fr> NNTP-Posting-Host: 20.44.240.33 X-Trace: lore.csc.com 1037640407 18333 20.44.240.33 (18 Nov 2002 17:26:47 GMT) X-Complaints-To: abuse@news.csc.com NNTP-Posting-Date: Mon, 18 Nov 2002 17:26:47 +0000 (UTC) X-Newsreader: Gnus v5.5/Emacs 20.3 X-Original-NNTP-Posting-Host: galadriel.frlngtn.gecm.com X-Original-Trace: 18 Nov 2002 17:26:12 GMT, galadriel.frlngtn.gecm.com Xref: archiver1.google.com comp.lang.ada:31058 Date: 2002-11-18T16:21:36+00:00 List-Id: Lutz Donnerhacke writes: > * Pascal Obry wrote: > > !!!!! How is this possible ? A "new" without a "Free" and you claim no memory > > leak !!!!! > > Simple. The access variable has a local scope and all objects associated > with it are automatically freed when the type goes out of scope. You may > limit the pool size of this access type ... If you look at the code in question you will see that the type is not local (to the loop). It is local to the given subprogram, but the loop is endless in the subprogram. I agree that on a modern hosted OS like Linux or Windows, when you terminate the main program the memory it has allocated will be restored. But that will not do you much good if your os is eg VxWorks.