comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: To_Unbounded_String and PROGRAM_ERROR
Date: Fri, 1 Feb 2002 14:02:58 +0000 (UTC)
Date: 2002-02-01T14:02:58+00:00	[thread overview]
Message-ID: <slrna5l84l.786.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: pan.2002.02.01.12.06.41.213262.3637@zamek.gda.pl

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.�



  parent reply	other threads:[~2002-02-01 14:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-01 11:06 To_Unbounded_String and PROGRAM_ERROR Michal Nowikowski
2002-02-01 12:34 ` Michal Nowak
2002-02-01 14:02 ` Preben Randhol [this message]
2002-02-01 16:11 ` Ted Dennison
2002-02-11  9:53   ` Michal Nowikowski
2002-02-14  0:32     ` Nick Roberts
2002-02-01 16:38 ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox