Register to post in forums, or Log in to your existing account
 

This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.     Home » Forums » General zApp Discussion
Krule
Adept


Joined: 12 Nov 2000
Posts: 268
Location: Canada

PostPosted: Fri Jul 09, 2004 9:38 am   

Zeus 1.03 Bug Reports
 
JIT Still catches mailview.zml stuff as before, sorry :(
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Rainchild
Wizard


Joined: 10 Oct 2000
Posts: 1551
Location: Australia

PostPosted: 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.
Reply with quote
Krule
Adept


Joined: 12 Nov 2000
Posts: 268
Location: Canada

PostPosted: 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.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Krule
Adept


Joined: 12 Nov 2000
Posts: 268
Location: Canada

PostPosted: Mon Jul 12, 2004 7:13 pm   
 
You meean try the following extentions in Zeus right?

Will do..1 second.
Reply with quote
Krule
Adept


Joined: 12 Nov 2000
Posts: 268
Location: Canada

PostPosted: 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
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Home » Forums » General zApp Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2009 Zugg Software. Hosted on Wolfpaw.net