Jump to content
Sign in to follow this  

Recovering from a DllCall crash

Recommended Posts

Is there any way to recover and carry on running an app after a DllCall becomes unresponsive?

The problem is that I need to run this dll  call and sometimes it will fail and never return  

(AutoIt3.exe ended.rc:-1073741819).

DllCall("msvcrt.dll", "int:cdecl", "memcmp", "ptr", $ptr1, "ptr", $ptr2, "int", $smallest)

The closest I can get to a solution is _OnAutoItErrorRegister

'?do=embed' frameborder='0' data-embedContent>>

but that seems to need my script to close and restart rather than just carrying on with the code after the DllCall

Share this post

Link to post
Share on other sites

Make sure that all pointers are valid and the length does not exceed the allocated memory size.

DllCall("msvcrt.dll", "int:cdecl", "memcmp", "ptr", $ptr1, "ptr", $ptr2, "uint_ptr", $smallest)

Edited by Yashied

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...