Re: List limits
Re: List limits
- Subject: Re: List limits
- From: Shane Stanley <email@hidden>
- Date: Mon, 17 Dec 2001 13:42:35 +1100
On 17/12/01 1:21 PM +1000, Paul Berkowitz, email@hidden, wrote:
>
A user of one of my scripts hit an error:
>
>
"It seemed like something was happening, although it was taking a long time.
>
Finally, I switched to the applet and found an error message: "Variable
>
contactList is not defined". When I clicked on the "Edit" button, I got an
>
error about text insertion not working because the length limit would be
>
exceeded. That appeared to involve appending info from some contact to some
>
variable...I'm not sure."
>
My first point of call would be the app's memory allocation. I've seen this
error in applets that otherwise run fine in an editor; I've wasted hours
trying to track down problems, only to find them go away when I increased
the applet's memory partition.
>
the 32K-per-variable limit. Or is this 32K-per-variable limit only when
>
writing to a file, and is it even still valid in OS 9 and X?
>
There's no such limit. The 32K business only comes into play if you want to
do comparisons, or get word x of aLongString.
>
Presumably coercing these long lists to text (which I did not do in this case)
>
and setting a variable to it breaks this 32K limit. (As I say, I didn't do
>
that this time, but frequently do in other scripts.)
>
Repeat: there is no 32K limit. I've had variables holding megabytes of text.
>
Would the best technique for handling large sets of data be to coerce each
>
separate interior list (one record, basically) to text and write it to a file
>
as it is extracted, never making these large lists at all? Or is this
>
needlessly cautious?
>
Sounds like needless caution to me.
>
Is it clear what limit was being transgressed with the error reported to me?
>
Try the applet's memory first. And check that the user had enough free
memory for the applet in the first palce.
--
Shane Stanley, email@hidden
References: | |
| >List limits (From: Paul Berkowitz <email@hidden>) |