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: Robert Dewar Subject: Re: Create-Delete tmp Files Date: 2000/03/23 Message-ID: <8bdcb6$tmo$1@nnrp1.deja.com>#1/1 X-Deja-AN: 601316094 References: <8b4n77$u4a$1@nnrp1.deja.com> <8b8195$ahk$1@nnrp1.deja.com> <649110192wnr@natron.demon.co.uk> <8bcmds$6e9$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Mar 23 15:13:55 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-23T00:00:00+00:00 List-Id: 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. Sent via Deja.com http://www.deja.com/ Before you buy.