Stopping Scripts
Posted: Mon Sep 03, 2007 4:22 pm
@Scott;
Lately I ran in some unexplainable stuff while writing running scripts.
While writing scripts I usually put MsgBoxes in them to see what happens and if all is fine, I remove them from the script.
A few times already I still saw the MsgBox output appear after having removed it and restarted the script. After some time I figured out that when HB is restarted it appears that some running scripts remain running. All of the scripts have the On Error Resume Next set so after killing HB, they would probably not fail on not having the HB specific commands like SetPropertyValue etc.
Just now while putting a song on the queue, the song appeared twice. This was because two instances of the same script appeared to be running. Killing HB fixed it.
Not sure how or when it happens but I am pretty sure that sometimes the Stopped state doesn't "really" stop the internals of the script. This makes debugging scripts rather difficult because stuff happens that cannot be explained otherwise.
Does this or could this ring any bells?
Lately I ran in some unexplainable stuff while writing running scripts.
While writing scripts I usually put MsgBoxes in them to see what happens and if all is fine, I remove them from the script.
A few times already I still saw the MsgBox output appear after having removed it and restarted the script. After some time I figured out that when HB is restarted it appears that some running scripts remain running. All of the scripts have the On Error Resume Next set so after killing HB, they would probably not fail on not having the HB specific commands like SetPropertyValue etc.
Just now while putting a song on the queue, the song appeared twice. This was because two instances of the same script appeared to be running. Killing HB fixed it.
Not sure how or when it happens but I am pretty sure that sometimes the Stopped state doesn't "really" stop the internals of the script. This makes debugging scripts rather difficult because stuff happens that cannot be explained otherwise.
Does this or could this ring any bells?