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,dc393c3a10696107 X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Create-Delete tmp Files Date: 2000/03/20 Message-ID: #1/1 X-Deja-AN: 599937082 Sender: bobduff@world.std.com (Robert A Duff) References: <8at7g0$bhc$1@nnrp1.deja.com> <38D27008.4055C0AB@res.raytheon.com> <8b0pla$aub$1@nnrp1.deja.com> <8b4n77$u4a$1@nnrp1.deja.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-03-20T00:00:00+00:00 List-Id: Achim Gerhard writes: > The question is: > is these legal Ada code? By the way, "legal" is a compile-time thing in Ada, which isn't what you mean here. > loop > Text_IO.Create ( File => the_file, Mode => Text_IO.OUT_File ); > Text_IO.Reset ( File => the_file, Mode => Text_IO.IN_File ); > Text_IO.Delete ( File => the_file ); > end loop; > And the question behind that is: > Why does this code cause the Ada runtime to accumulate memory? Because you didn't Close the file. - Bob