erroneous error codes
Wouter
wouter.abraham at pi.be
Thu Apr 22 17:57:55 EDT 2004
On 21 Apr 2004, at 18:00, metacard-request at lists.runrev.com wrote:
> Message: 2
> Date: Tue, 20 Apr 2004 21:23:40 -0500
> From: "J. Landman Gay" <jacque at hyperactivesw.com>
> Subject: Re: erroneous error codes
> To: Discussions on Metacard <metacard at lists.runrev.com>
> Message-ID: <4085DB2C.5040906 at hyperactivesw.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> I tried debugging the erroroneous error codes tonight. It's hard
> because
> you can't use the debugger to do it -- everything goes wonky if you
> try.
> Instead, I inserted bits of script that put variable values in the
> message box.
>
> I don't see anything wrong with any of the scripts. It looks to me like
> the problem only happens the first time a script is recompiled. After
> that, you can cause an error any number of times and get the correct
> results. I think the engine is sending a false error code the first
> time
> it compiles a script.
>
> I traced through everything as well as I could, and I couldn't find any
> other explanation.
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
Some observations which may be of some help:
Using an error producing button the
Object: property is not an integer
Object: value is not boolean (true or false)
errormessage is produced every time one opens and closes a scripteditor
(just opening and closing, no editing).
I changed the errorDialog handler of the frontscript in the btn
"newobj" first to catch the which parameter.
If the wrong error message is produced then the which parameter
contains:
354,0,0
352,0,0
354,0,0
352,0,0
354,0,0
352,0,0
354,0,0
352,0,0
354,0,0
352,0,0
354,0,0
352,0,0
.
.
< from 28 to 136 times the above lines>
.
.
89,2,10,2
95,2,10
466,2,1
241,2,1,mouseUp
353,0,0,button id 1003 of card id 1002 of stack
"/Volumes/Stashville/Teststacks/metacard_error_tester.mc"
The last 5 lines of which contain the right parameters.
I am test running a workaround to the errordialog with no problems up
to now.
on errorDialog which
if length(which) > 5 then put line -5 to -1 of which into which ###
the change
set the executionerror of card 1 of stack "Execution Error" to which
modeless "Execution Error"
send "refresh" to card 1 of stack "Execution Error"
end errorDialog
HTH,
WA
More information about the metacard
mailing list