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,5de108d9cf7f21e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-19 09:38:44 PST From: "Dr. Michael Paus" Newsgroups: comp.lang.ada Subject: Re: Question concerning usage of gnatmem Date: Thu, 19 Sep 2002 18:38:40 +0200 Organization: 1&1 Internet AG Message-ID: References: NNTP-Posting-Host: p5083007a.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.online.de 1032453521 23070 80.131.0.122 (19 Sep 2002 16:38:41 GMT) X-Complaints-To: abuse@online.de NNTP-Posting-Date: 19 Sep 2002 16:38:41 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!schlund.de!news.online.de!not-for-mail Xref: archiver1.google.com comp.lang.ada:29186 Date: 2002-09-19T16:38:41+00:00 List-Id: Stephen Leake wrote: > "Dr. Michael Paus" writes: > > >>When I run the program I have to stop it via Cntrl-C because this software >>was designed to run forever and there is no other way to stop it. Does this >>lead to a corrupt output file? > > > In general, I suspect the answer is "yes". > > >>If the output is likely to be corrupt is there any other way to get >>the memory usage until the time when the program is stopped? > > > Probably not. > > Modify your code; it probably has a top-level forever loop. Change it > to run 1000 times, or whatever produces useful results. Well, if it were so easy I would have done that already :-) The program consists of about 30 tasks all waiting for some input to process and some of them listening on sockets to receive some data from external sources. It is not so easy to force this program to terminate without major changes to the code. If I remember correctly there was a discussion here recently on how to stop an Ada program. The solution, if there was any, would be handy here now. Michael