|
Krule Adept
Joined: 12 Nov 2000 Posts: 268 Location: Canada
|
Posted: Fri Jul 09, 2004 9:38 am
Zeus 1.03 Bug Reports |
JIT Still catches mailview.zml stuff as before, sorry :(
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jul 09, 2004 4:51 pm |
Hmm, wierd.
What I did to *try* and fix this was add a statement:
ON ERROR RESUME NEXT
when I want to disable errors, and then a statement:
ON ERROR GOTO 0
to enable error checking again.
If the JIT system still flags errors when these conditions are set, then something else is wrong. If there is any way for you to work with someone on some test scripts, that would be a big help. I'm afraid I can't think of anything else to try doing. There isn't any kind of property in the Microsoft Scripting Host to actually disable error checking or anything in a language independant way. |
|
|
|
Rainchild Wizard
Joined: 10 Oct 2000 Posts: 1551 Location: Australia
|
Posted: Sat Jul 10, 2004 12:07 am |
I thought VBScript didn't support ON ERROR ... or was that VB for Pocket PC *think*
Well one or the other doesn't support error handling. |
|
|
|
Krule Adept
Joined: 12 Nov 2000 Posts: 268 Location: Canada
|
Posted: Sat Jul 10, 2004 7:34 am |
From what I understand it just catches ANY exceptions that are unhandled..I suppose I could write some vbscript and check it out..i mean it's not the end of the world once i figured out how to disable JIT script debugging..but obviously thats not a perm solution..i'll check itout.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jul 12, 2004 7:07 pm |
ON ERROR is in my VBScript reference book and it doesn't produce any errors, so I think it's supported.
Krule, if you could try some of the following scripts in zMUD, I'd be interested in the results. Just put these <SCRIPT> tags somewhere within the <WINDOW> declaration of one of the demo programs. The script will get executed when the window is being created.
<SCRIPT>
A = 0
B = 10 / A
</SCRIPT>
should give a Divide by Zero error. You hopefully will get the script error window that Zeus itself displays when it traps errors. I'd be interested whether the JIT debugger also fires or if it just lets Zeus handle the error.
<SCRIPT>
ON ERROR RESUME NEXT
A = 0
B = 10 / A
</SCRIPT>
This will test to see if the ON ERROR statement has any effect on the previous script. Let me know what happens. |
|
|
|
Krule Adept
Joined: 12 Nov 2000 Posts: 268 Location: Canada
|
Posted: Mon Jul 12, 2004 7:13 pm |
You meean try the following extentions in Zeus right?
Will do..1 second. |
|
|
|
Krule Adept
Joined: 12 Nov 2000 Posts: 268 Location: Canada
|
Posted: Mon Jul 12, 2004 7:21 pm |
Ok, heres the script I sort of put together:
Code: |
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE zeus [
<!ENTITY AppTitle "Zeus Demo: Debug Program">
<!ENTITY AppAuthor "Ben Baril">
<!ENTITY AppVersion "1.0">
<!ENTITY AppURL "http://www.zuggsoft.com/">
<!ENTITY AppImage "emobius.gif">
<!ENTITY AboutBox SYSTEM "aboutbox.xml">
]>
<zeus>
<head>
<splash>
<image image='emobius.gif' deltaleft='8' deltatop='8'/>
<label align='Client' bevelouter='Lowered' autoleft='true' deltaleft='8' width='-8' height='-8'><![CDATA[<b>eMobius</b><br><br>
eMail with a <i>twist</i><br><br>
Version &AppVersion;<br><br>
by &AppAuthor;]]></label>
</splash>
</head>
<window name='main' caption='Zeus Debug Window' width="640" height="480">>
<script>
A = 0
B = 10 / A
</script>
</window>
&AboutBox;
</zeus>
|
And what happens first is I get a JIT debug window, and then a zeus popup when I say no to Jit.
Now when I add the ON ERROR RESUME NEXT....
I get nothing...no JIT and no zeus debug |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jul 12, 2004 10:54 pm |
Hmm, that's *very* interesting! Maybe the code I added to execute the ON ERROR RESUME NEXT operation isn't working for some reason. Looks like that's a good way to get around the JIT debugger. I'll play with this more myself and see what I can find using your sample script.
Thanks for taking the time to help with this. |
|
|
|
|
|