Sign in to follow this  
Followers 0
Tippex

Autoit v3 script has stopped working

5 posts in this topic

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!

 

Share this post


Link to post
Share on other sites



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 :)

1 person likes this

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0