Re: Stack Overflow - a mind boggling problem
Re: Stack Overflow - a mind boggling problem
- Subject: Re: Stack Overflow - a mind boggling problem
- From: email@hidden
- Date: Mon, 29 Oct 2001 10:34:36 +0000
Not so long ago I had a script that ran fine in script debugger but would
bomb as soon as it was run as a compiled application saying "stack overflow
error". I fixed it by going through the code and cutting bits out, trying
to see if it would just start working... which it did. I found the error
was in the nested (about 5 or 6 deep) error trapping in the run handler...
I rewrote that part of the script but it still wouldn't work. So I cut
down the number of globals/properties I was using and upgraded to 9.2 and
all was well. I don't know if this will be any help to you but it might be
worth a try!
Tom.
----
>
The script runs fine on my development Mac and on 2 other ones, but I can
>
get it to run on a 3rd one. All are G3 desktop 233MHz running MacOS 9.1
and
>
updated to AppleScript 1.6. The target Macs have 256 MB ram, mine 192MB.
>
The error message is stack overflow "depassement de la pile".
I guess the first thing to do is to try to find how far it gets before the
error, so you can try to narrow down where the error is happening. When you
do that, you could then post the relevant code.
--
Shane Stanley, email@hidden
Thanks Shane,
I was not clear enough. The main script (applet) should start up with a DD
dialog to pick up user data for the job. Then it loads other scripts when
needed.
The problematic mac does not even start anything, the message is right at
the beginning, before the main dialog should be displayed. The only code
before the DD stuff are global initialisations, and initialisations for
this
DD dialog.
I am awaiting SD version 3 anytime now. Any debugging tools in there that
could help?
Jean Letourneau
Administrateur de systemes informatiques
Le journal de Montreal
Courriel: email@hidden
<=======================>
Tom Barrett
Research and Development
Electronic Solutions
Minerva House
1-4 North Crescent
Chenies St
London
WC1E 7ER
T: +44 (0) 20 7631 9742
F: +44 (0) 20 7631 9751
E: email@hidden
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************