Jump to content

AutoIt error when I try to run my program when it is already running if I set it to single instance.


Recommended Posts

In my program I set it to _SingleTon() so I can only run one instance of it and I included MsCreators hover function so I can add hovering to my skin images and whenever I am running my program and try to run it again it throws this error:

_DllCallBack_Free($pTimerProc)

_DllCallBack_Free(^ ERROR

Error: Variable used without being declared.

MsCreator, got any ideas how to fix this problem?

Help on solving this would be appreciated, :)

Link to comment
Share on other sites

At a guess you need to change MS Creators CallBack_Exit function

Func CallBack_Exit()
    If IsDeclared("pTimerProc") then 
        DllCallbackFree($pTimerProc)
        DllCall("user32.dll", "int", "KillTimer", "hwnd", 0, "uint", $uiTimer)
    EndIf
EndFunc
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...