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, MSGID_RANDY 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: Achim Gerhard Subject: Re: Create-Delete tmp Files Date: 2000/03/24 Message-ID: <8bfd8b$6g6$1@nnrp1.deja.com>#1/1 X-Deja-AN: 601686023 References: <8b4n77$u4a$1@nnrp1.deja.com> <8b8195$ahk$1@nnrp1.deja.com> <649110192wnr@natron.demon.co.uk> <8bcmds$6e9$1@nnrp1.deja.com> <8bdcb6$tmo$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x27.deja.com:80 (Squid/1.1.22) for client 195.243.118.226 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Mar 24 09:41:33 2000 GMT X-MyDeja-Info: XMYDJUIDachim_g Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-03-24T00:00:00+00:00 List-Id: In article <8bdcb6$tmo$1@nnrp1.deja.com>, Robert Dewar wrote: > In article <8bcmds$6e9$1@nnrp1.deja.com>, > Achim Gerhard wrote: > > > with Text_IO; > > procedure IO_Test > > is > > the_file : Text_IO.File_Type; > > begin > > for i in integer range 1 .. 100_000 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; > > end IO_Test; > > Regards, > > Achim > > Actually it does not surprise me one bit that this leaks. When > you use temporary files, they have the semantics that they are > automatically deleted at the end of the run. It is quite > expected that the runtime (either at the Ada level and/or > the OS level) will maintain some data structures for ensuring > that this deletion takes place. > > It is rather odd style to explicitly delete such files, so it > is not surprising that the data structures are not cleaned up > to take account of this. I do not agree. If the implementation does not support deletion in this case, I would expect, that a call to DELETE will raise the exception USE_ERROR. Also, a explicit call of DELETE does not contradict with the clean up during the completion of the main program. Regards, Achim > > Sent via Deja.com http://www.deja.com/ > Before you buy. > -- _ _ /A/G -- _ _ /A/G Sent via Deja.com http://www.deja.com/ Before you buy.