AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Could not close the previous instance of this script.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Sat Aug 30, 2008 11:23 pm    Post subject: "Could not close the previous instance of this script. Reply with quote

i've started getting this message - "Could not close the previous instance of this script. Keep waiting?" - when I attempt to reload my 24/7 autohotkey script. In what situations does this error occur. can't find much about it in help file or with google
Back to top
View user's profile Send private message
Red Hat Dude
Guest





PostPosted: Sat Aug 30, 2008 11:58 pm    Post subject: Reply with quote

I've seen that error messages plenty of times while testing scripts; I imagine plenty of things can cause it. Show us the script and we may be able to help.
Back to top
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Sun Aug 31, 2008 12:55 am    Post subject: Reply with quote

my code runs at about 1300 lines. it would take hours if not days to sort through it. if i had an idea of the sort of problems (eg timers, onexit, size of code etc) that lead to this message i could try troubleshooting but i don't know where to begin
Back to top
View user's profile Send private message
rodfell



Joined: 05 Oct 2007
Posts: 57
Location: Bundaberg (Bundy), Qld, Australia

PostPosted: Sun Aug 31, 2008 1:59 am    Post subject: Reply with quote

found the problem. I had removed exitapp command from an onexit subroutine. oops
Code:
onexit exitsub
#r::reload
exitsub:
msgbox,,, trying to reload,1
return
i know this problem is documented in the help file, but the error message you get with the above script when you try to reload isn't very helpful.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group