Intermittent problem
Intermittent problem
- Subject: Intermittent problem
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 15 Nov 2000 17:32:33 -0500
- Organization: [very little]
I have a pair of script applications that are being used on several
machines. On some machines they work perfectly while on others they work
sometimes and sometimes they don't. Intermittent problems are the worst
because they're so hard to pin down.
The main script has a run handler and an idle handler. The run handler
displays a Dialog Director dialog which accepts various settings for
when the idle handler is to perform its actions: intervals, delays,
excluded hours of the day. The other script is nothing but a button that
uses +event aevtrapp; to trigger the run handler of the main script
which is always cycling on its idle handler when the run handler isn't
active. The button script was created using the Resource Runner osax.
The run handler of the main script has code at the beginning that checks
to see if the button script is running. If it is, it tells it to quit.
The idle handler of the main script has code at the beginning that
checks to see if the button script is running. If it's not, the idle
handler tells it to activate. Basically, I want the button to be on
screen when the dialog from the run handler of the main script is not
showing and off when the main script's dialog is showing.
The intermittent problem is that sometimes the button application fails
to start when the idle handler tells it to activate. Instead, a -1712
error is returned. Sometimes the message is "-1712 The Button got an
error: File wasn't found". At other times the message is "-1712 The
Button got an error: AppleEvent timed out".
I would really appreciate it if someone could give me a hint as to what
might be going on here.
Marc [11/15/00 5:19:59 PM]