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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,405c9fed403b342b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-30 14:31:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: prichtmyer@yahoo.com (Peter Richtmyer) Newsgroups: comp.lang.ada Subject: Re: Program Terminates ... Date: 30 Dec 2003 14:31:28 -0800 Organization: http://groups.google.com Message-ID: <1b585154.0312301431.6816874d@posting.google.com> References: <1b585154.0312211634.6c414d2e@posting.google.com> <1b585154.0312300730.459483cc@posting.google.com> NNTP-Posting-Host: 155.104.239.16 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1072823488 27356 127.0.0.1 (30 Dec 2003 22:31:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Dec 2003 22:31:28 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3970 Date: 2003-12-30T14:31:28-08:00 List-Id: "Jeff C," wrote in message news:... > I do notice all the cygwin errors > you are getting saying that > the data might not be meaningful > > Do you get the same results if you are not using the cygwin environment > since GNAT is not officially > supported on Cygwin (it is a currently a mingw based win32 distribution). I am not using Cygwin - could not even find that DLL on my computer. I think gnatmem is confused there. Also, the gnatmem output did show alot of DEALLOC messages for unbounded_string's (along with the ALLOC's). There are 3 major areas where I use unbounded_string's in the pgm. I changed to fixed strings in one area, and have not seen memory problems there any more. I really like the unbounded variety, but can not have the program crashing all the time. I used to run it more on Unix (Rational Ada) and only on Gnat for development. And did not have these problems. But this version is Gnat only. (Using Gnat Sockets). I have made other changes too. But the messaging means more exercising of the Unbounded_String objects I have, and it seems to be the cause of the memory problems. >From the RM, it sounds like Bounded_String's would be as bad. It said they should not be dynamically allocated. Hey. Could it be that the Unbounded_String's are not the problem per se, but the fact that they are within record objects being dynamically allocated is the problem? Or one of the problems? thanks, Peter