• 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: Error: Stack overflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error: Stack overflow


  • Subject: Re: Error: Stack overflow
  • From: John Delacour <email@hidden>
  • Date: Wed, 30 Apr 2003 01:33:29 +0100
  • Mac-eudora-version: 6.0a16

At 3:38 pm +0200 29/4/03, Goeran Ehn wrote:

I'm reading a file from disk which is about 1200 lines (52k) which is not very large in my mind. However I get this error telling me "stack overflow" when reading large files....


Here's an amusing puzzle for everyone. If you run this script you should get a stack overflow. Goeran's message reminded me of something that happened to me a few days ago which I knew had nothing to do with the Read/Write osax.

Your mission is to work out why :-)


set d to "1/1"
set n to "" & (current date) - (get date d)
set fU to "/tmp/" & n & ".txt"
set f to POSIX file fU
--> file "dx:private:tmp:10286845.txt"
open for access f with write permission
set s to "***** hello *****"
write s to f
close access f
read f
--> "***** hello *****"
tell application "Finder"
get f
--> file "dx:private:tmp:10286845.txt"
set creator type of f to "NISX"
--> STACK OVERFLOW
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Error: Stack overflow
      • From: Jon Pugh <email@hidden>
References: 
 >Error: Stack overflow (From: "G?ran Ehn" <email@hidden>)

  • Prev by Date: Re: Error: Stack overflow
  • Next by Date: Re: Error: Stack overflow
  • Previous by thread: Re: Error: Stack overflow
  • Next by thread: Re: Error: Stack overflow
  • Index(es):
    • Date
    • Thread