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,a0d66e40cda260bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Memeory management Date: Tue, 06 Sep 2005 18:45:43 +0200 Organization: Cablecom Newsserver Message-ID: <25601061.ZuNb2YK6sR@linux1.krischik.com> References: <1125951895.357358.320220@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 84-73-3-68.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1126027820 2886 84.73.3.68 (6 Sep 2005 17:30:20 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Tue, 6 Sep 2005 17:30:20 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:4481 Date: 2005-09-06T18:45:43+02:00 List-Id: Zheng Wang wrote: > Hi, My program is compiled by ObjectAda and ran on Windows, then it > returns code 128(a correct program should return code 0). I found that > there are too many variables declared and after I merged some > variables(number of variables deduced), it does work perfectly. I > wonder that are there any constrains on the memory allocated for > variable declaraions? However, I did not allocate and deallocate memory > as I did in C, does Ada provide automatically garbage collection? Ada *may* have automatically garbage collection - with emphasis on *may* - In ObjectAda the garbage collection is provided only for JVM as target > How > could I handle this case if I can not deduce the number of variables > declared? Many thanks. See http://en.wikibooks.org/wiki/Ada_Programming/Memory Regards Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com