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-Thread: 103376,6b353437b73507a5,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Basic program with tasks goes out of memory Date: 5 Aug 2004 07:55:27 -0700 Organization: http://groups.google.com Message-ID: <5ad0dd8a.0408050655.355fa926@posting.google.com> NNTP-Posting-Host: 62.111.211.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1091717728 16825 127.0.0.1 (5 Aug 2004 14:55:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 5 Aug 2004 14:55:28 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:2580 Date: 2004-08-05T07:55:27-07:00 List-Id: Hello, Any idea why this program (extracted from AdaSockets example) eventually eats up all RAM? Runtime leak or my ignorance? Linux - GNAT 3.4.2 20040729 (prerelease), Windows - GNAT 3.15p. Regards, Wojtek with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; procedure Listener is task type Echo is entry Start; end Echo; task body Echo is begin select accept Start do null; end Start; or terminate; end select; exception when others => Put_Line ("Strange error"); end Echo; type Echo_Access is access Echo; Dummy : Echo_Access; begin loop Dummy := new Echo; Dummy.Start; -- The statement below merely "delays" the problem delay 0.001; end loop; end Listener;