Testy Posted March 7, 2008 Share Posted March 7, 2008 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 More sharing options...
Uriziel01 Posted March 7, 2008 Share Posted March 7, 2008 (edited) 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 March 7, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now