Jump to content

Autoit v3 script has stopped working


Tippex
 Share

Recommended Posts

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

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

Link to comment
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)

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...