• 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
stack overflow avoidance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stack overflow avoidance?


  • Subject: stack overflow avoidance?
  • From: Jeff Ganyard <email@hidden>
  • Date: Sat, 11 Nov 2000 20:57:47 -0800

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"

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?

TIA

jeff


References: 
 >Replacing characters in a string (From: Matthew Fischer <email@hidden>)

  • Prev by Date: Re: Replacing characters in a string
  • Next by Date: FM question: Omit in find
  • Previous by thread: Replacing characters in a string
  • Next by thread: Re: Replacing characters in a string
  • Index(es):
    • Date
    • Thread