Re: stack overflow avoidance?
Re: stack overflow avoidance?
- Subject: Re: stack overflow avoidance?
- From: "Arthur J Knapp" <email@hidden>
- Date: Mon, 13 Nov 2000 10:37:16 -0500
>
Date: Sat, 11 Nov 2000 20:57:47 -0800
>
From: Jeff Ganyard <email@hidden>
>
Subject: stack overflow avoidance?
>
I'm have a looping routine that runs through text changing things...
>
it's pretty simplistic.
>
>
get offset of start string
>
get offset of end string
>
change text in between
>
concatenate "chars 1 thru first offset" and "changed text" and "chars
>
second offset to end of string"
Is the above psuedo-code, or a Scripting Addition ;-)
>
It seems to work fine most of the time, if the_string is not "too
>
long" it works fine. However in some cases the_string is "too long"
>
and I get a stack overflow error. How do I avoid that error?
Change:
"characters X thru y" -- list, will break when ( Y - X > 4096 )
To:
"text from character X to character Y" -- string
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
how many?
zero.
are you sure?
i counted twice.
}