• 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: file size limit for read command (OS 9)??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file size limit for read command (OS 9)??


  • Subject: Re: file size limit for read command (OS 9)??
  • From: Gary Lists <email@hidden>
  • Date: Sat, 18 Jan 2003 03:07:30 -0500

On or about 1/18/03 12:51 AM, Donald Hall wrote:

> I have a script that reads in a 1.1 MB file in OS 9.2.2. This script
> is run by another script (an applet) with the "run script" command. I
> get an out of memory error (-108) even if I allot 8 MB to my script
> runner. When I watch the runner's memory usage in 'About this
> Computer', it is clear that less than half the assigned 8 MB ever
> gets used, but I still get the -108 message. If I run the same set up
> in Classic in OS X, everything works fine.
>
> Is there some limit to the number of bytes I can read in at the same
> time in OS 9.2.2? (The script reads the data in, processes it, then
> writes it out to a second file. The way the script is now written,
> both files are open at the same time.)
>
> Thanks,
>
> Don


Don,

I am experiencing this same error number, and made a note of it in my
current script project.

In my case, it is thrown (oddly, it seems) when a local file has been
inserted into a FileMaker container _as a reference_ (not embedded) and then
subsequently is moved or missing. When my script gets the contents of such a
field, this error is produced.

So, I've accepted the seemingly unrelated (in description) error and added
it to my try block so I can handle it accordingly. It's ugly, but it works.

This is my own note, in my error handler:

-- [-108] Not enough memory ... throws this error if the file reference is
now missing ... odd but it'll do


Your script, dealing with reading/writing files, and my script have file
references in common (although mine is in a FM tell block, it makes sense
that FM would have to do its own communication with the file system to
return the current information).

So, I am now wondering if your error -108 is also being given when the real
problem is something to do with the file you are reading/writing?

Or perhaps from the thread I'll learn of a less error-leaning way to
determine the validity of a FM-to-file reference, as the -108 seems to be
the only way to determine that information by script (the class of the cell
still returns 'picture'...not helpful.)

I also am using OS9, but v9.1.2, and AS 1.8

--
Gary

Incoming replies are auto-deleted.
Please post directly to the list or newsgroup.
_______________________________________________
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.

References: 
 >file size limit for read command (OS 9)?? (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: Long Int/One's compliment for Time_t
  • Next by Date: Re: Shell scripts
  • Previous by thread: file size limit for read command (OS 9)??
  • Next by thread: Re: file size limit for read command (OS 9)??
  • Index(es):
    • Date
    • Thread