Jump to content

Script stopping after error.


Recommended Posts

Hi again!

Ok, I have a script that I have been working on, and it works well. However, if I push a button and the program running encounters an error - not the script - in this case a tcp ip error. The script will stop working, and if it's the exe it will close altogether.

Is there any way I can have it be 'Ok we had an error but that's ok, let's keep running'...?

Thank you,

Testy!

Link to comment
Share on other sites

Meaby Opt("RunErrorsFatal", 0) will help you ? (more info in SciTe help RunErrorsFatal) :)

EDIT:

But if it is a TCP error it may not help you because your problem is that:

$socket = TCPConnect( $IPr, $port )
                If $socket = -1 Then Exit

And when the aplication using TCP ends, it is closing the socket, and your program exits like in code ;)

Try to use TCPShutdown ( ) in OnAutoItExit ( ) meaby it will help.

Edited by Uriziel01
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...