• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: stack overflow avoidance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Entire content (Re: Maintaining large website / finding many files)
  • Next by Date: Re: Automate zip archives
  • Previous by thread: Re: stack overflow avoidance?
  • Next by thread: Quoted-printable and AOL
  • Index(es):
    • Date
    • Thread