Tippex Posted September 17, 2014 Share Posted September 17, 2014 When I run my (large) script on a Windows 7 PC (no such problem in XP) I get a dialog: "Autoit v3 script has stopped working A problem caused the program to stop working correctly. Please close the program." But with trace lines added, I can see in the background that actually my script appears to be working still and I'm wondering if it was caused by some minor COM error (I have a error handler so skip any "Exception Occurred" errors) but may be the COM error signalling to Windows 7 that my script isn't working correctly. Is it possible for the "Autoit v3 script has stopped working" to be suppressed so that my script can continue working? Is this a Windows 7 error dialogue or an AutoIT message? Thanks! Link to comment Share on other sites More sharing options...
j0kky Posted September 17, 2014 Share Posted September 17, 2014 Put this at the beginning of the script: _WinAPI_SetErrorMode($SEM_FAILCRITICALERRORS Or $SEM_NOGPFAULTERRORBOX) Most likely your script will die anyway, but nobody will notify you about it meoit 1 Spoiler Some UDFs I created: Winsock UDF STUN UDF WinApi_GetAdaptersAddresses _WinApi_GetLogicalProcessorInformation Bitwise with 64 bit integers An useful collection of zipping file UDFs Link to comment Share on other sites More sharing options...
Bert Posted September 17, 2014 Share Posted September 17, 2014 Also, is your script made for 32 bit or 64 bit? meoit 1 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Tippex Posted September 17, 2014 Author Share Posted September 17, 2014 Put this at the beginning of the script: _WinAPI_SetErrorMode($SEM_FAILCRITICALERRORS Or $SEM_NOGPFAULTERRORBOX) Most likely your script will die anyway, but nobody will notify you about it It works!! My script (running on x64 but compiled for x86) works correctly & fully without the interruption! Thank you so much (I'm going to have to remember to always add that line in any script that may run under Win 7) Link to comment Share on other sites More sharing options...
j0kky Posted September 17, 2014 Share Posted September 17, 2014 Glad to have helped you! Spoiler Some UDFs I created: Winsock UDF STUN UDF WinApi_GetAdaptersAddresses _WinApi_GetLogicalProcessorInformation Bitwise with 64 bit integers An useful collection of zipping file UDFs 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