Re: AppleScript crashes constantly
Re: AppleScript crashes constantly
- Subject: Re: AppleScript crashes constantly
- From: Wim Melis <email@hidden>
- Date: Tue, 13 Feb 2001 12:47:23 -0000
>
>Tried it, but couldn't detect any significant leaks in the Smile memory
>
>checker. Also ran the post-compiler of Smile while I was at it, but it
>
>didn't find anything suspicious.
>
>
Significant? You should see no leak at all, shouldn't you.
>
>
AppleScript leaks may prove long to find. AppleScript may live on its
>
memory tank for minutes, and then all of a sudden, allocate a beautiful
>
slice of RAM, to compensate for a small leak.
>
>
So, be inflexible (you must not neglect even a small leak) and be patient
>
(wait minutes before you state there is no leak).
Ah... I've seen it crash while there still was almost a meg of available
memory, so didn't think that was the cause. Wrong impression, it seems.
Could you perhaps give some more insight how to use that memory checker
exactly? There's no real info in the help pages. The very act of
compiling code or outputting a result changes the 'cumulated diff'. So
what I do now to check is: put the script in a text window, run the
tested routine once to let it claim it's memory, go to the output window,
delete the results, go back to the text window, note the 'cumulated
diff', run the code a second time, go to the output window again, delete
the results, go back to the text window, check 'cumulated diff' and see
if its the same as last time. Mostly it's not and I'll have to do a third
iteration, after which the results of the 2nd and 3rd are (usually) the
same.
But even if I compile and run a simple handler like:
on test(a)
set b to a
return b
end
The results aren't consistent, after multiple runs sometimes it'll give
the same 'cumulated diff', and sometimes it'll hop a few bytes up or down
and stay there for a few iterations, etc.
So, am I using it correctly? Is there a faster way that doen't involve
those excursions to the output window?
And what is 'current free' exactly? Is it some chunk of reserved memory
in the OS?
Thanks,
Wim
-----
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival