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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,d9241cc896c5fa1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-01 06:02:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: To_Unbounded_String and PROGRAM_ERROR Date: Fri, 1 Feb 2002 14:02:58 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1012572178 3422 129.241.83.82 (1 Feb 2002 14:02:58 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 1 Feb 2002 14:02:58 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:19466 Date: 2002-02-01T14:02:58+00:00 List-Id: On Fri, 01 Feb 2002 12:06:42 +0100, Michal Nowikowski wrote: > Hello > > I've this code: > > --- > Path : array(1..1500) of Unbounded_String; > ... > for I in 1..1500 loop > Path(I) := To_Unbounded_String(Get_Current_Dir & Some_String); > end loop; > --- > > and get sth like that > raised PROGRAM_ERROR : a-strunb.ads:368 > > This occure after few iterations - it depends of length of converted > string. It looks for me that the limmit of memory is exceeded. > Have You any idea how to cope with it? add the compiler option -fstack-check and read : Stack Overflow Checking in the GNAT User Guide. But do you really have 1500 paths? -- Preben Randhol �For me, Ada95 puts back the joy in programming.�