AppleScript crashes constantly
AppleScript crashes constantly
- Subject: AppleScript crashes constantly
- From: Wim Melis <email@hidden>
- Date: Fri, 9 Feb 2001 14:15:17 +0100
Hi all,
After lots of work, my website-generating database is about done. There's
just one little problem: it crashes all the time.
If that happens, Script Editor quits with a type 11 error. If I run the
scripts from within FileMaker, it gets even worse. I tried to run the
scripts from Smile; same problem. At one occasion, Smile managed to
display a dialog stating that the finder was out of memory, before
quitting.
There's no logic to when it happens: 60% of the time it runs smoothly,
40% of the time it will crash at some moment and if it does, there's no
consistency to when it happens. I'm running a pretty plain OS8.6 system;
I also tried to run the script from a fresh OS9 system, same problem.
Each script basically has this structure:
1) Read data from three FileMaker databases (some 60 fields in total) and
store it in a large global.
2) Do a lot of text crunching (this can take many minutes). A second
global variable is used to track all the changes that are made along the
line. No interapplication communication takes place and no osaxen are
used, just plain text calculations.
3) Write html files to disk. This is the only part where I use an OSAX
(Tanaka's for read/write), but I tested that one and it isn't the culprit.
There are two loaded script libraries in each script, also as globals.
One of the script libraries calls the other library as a global again, to
use in it's own procedures.
Seeing that the error is so random and that it especially happens in
situations where the script needs a long time to perform the text
crunching, I suspect there's a memory leak somewhere. But I wouldn't even
know where to start looking... And I haven't been able to isolate it to a
specific routine, so can't post sample code. (The full scripts are way
too large for posting.)
Any ideas as to what might be causing this? Is there anything standard
that is known to cause memory leaks?
Thanks for any suggestions,
Wim
-----
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival