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=0.6 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60118c65070501a2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-06 08:07:45 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Pool Specific Access Types? Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 06 Sep 2001 11:07:34 EDT Organization: http://www.newsranger.com Date: Thu, 06 Sep 2001 15:07:34 GMT Xref: archiver1.google.com comp.lang.ada:12801 Date: 2001-09-06T15:07:34+00:00 List-Id: In article , Mr.Clueless says... > function Sum(List: Cell_Ptr) return Integer is > Local: Cell_Ptr := List; S: Integer := 0; > begin > while Local /= null loop > S := S + Local.Value; Local := Local.Next; > end loop; > return S; > end Sum; It looks cool. Try stepping through this in the debugger, paying attention to S and Local.Value. It could be that your ".Value" got huge numbers (garbage) in it somehow. If you add two or more of those together, then I could see you getting a Constraint_Error. Another possibility is that you somehow ended up with a circular queue when you built it, and it is just iterating around in a circle until you blow S past Integer'Last. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com