why does this script crash when IE5 is running?
why does this script crash when IE5 is running?
- Subject: why does this script crash when IE5 is running?
- From: "Donald S. Hall" <email@hidden>
- Date: Tue, 12 Dec 2000 23:40:30 -0700
Hi all,
I have included a stand alone stay open classic applet that runs fine until
IE 5 is launched on my 2000 G4 running OS 9.0.4. Then after a few minutes it
crashes with a Type 1 or 3 error, or else the machine totally locks up. IE 5
can be just sitting there with a blank window and the script app still
crashes. If IE5 has two open windows, the crash seems to come more quickly.
The enclosed listing is of course a distillation of my real script, just
showing enough elements to cause the crashing. The script is meant to be
running in the background at all times, so this behavior is very annoying to
say the least.
Any clues?
Don
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- compile and save as classic applet, then run by double clicking
-- launch IE5 and wait
-- I have waited up to an hour, much less if two IE windows are open
property checkInterval : 30 -- check for new action times every this many
seconds
global today -- day of the week of today as a string
global theList -- a list of lists
on run
beep 2
set today to word 1 of date string of (current date)
set theList to {{"test item", (current date) + 1 * days}}
end run
-- idle handler
--------------------------------------------------------------------------
-- runs every checkInterval seconds
on idle
-- check to see if midnight has passed, if so create a new list for the
new day
copy today to previousToday
set today to word 1 of date string of (current date)
--if today previousToday then -- must have passed midnight
-- makeNewList for today
--end if
-- check to see if any times on the list have passed
checkTheList() -- is it time to take action?
return checkInterval -- run this handler again after this many seconds
have passed
end idle
-- check to see if an action time has passed -----------------------------
to checkTheList()
--beep
if item 2 of item 1 of theList < (current date) then -- a check time has
passed
beep 2 -- should never get here if this test lasts < 24 hrs
end if
end checkTheList
--