Interrupting a task - how to?
Posted: Thu Mar 11, 2004 9:08 am
I want to control drapes. That requires closing a contact (using an rs232 digital IO unit), sleeping enough time (15 seconds) and releasing the contact.
In order to be able to interrupt that action, I created vb scripts for UP, DOWN and STOP. Each script changes the others' device's state to "stopped" to interrupt the other tasks in case they are running.
IS IT OK TO CHANGE A SCRIPT DEVICE'S STATE TO "STOPPED"?
After making several interrupts, I get error messages on the HB server:
unable to load the script file [my script file]. Error=[The operation completed successfuly].
Unable to compile the script.
After a few more interrupts, the server crashes with error:
AppName: housebotserver.exe AppVer: 2.0.0.0 modName: ntdll.dll
ModVer: 5.1.2600.1217 Offset: 00019ecd
Any suggestions on how else to interrupt tasks or to fix the problem?
Thanks,
Yoram
In order to be able to interrupt that action, I created vb scripts for UP, DOWN and STOP. Each script changes the others' device's state to "stopped" to interrupt the other tasks in case they are running.
IS IT OK TO CHANGE A SCRIPT DEVICE'S STATE TO "STOPPED"?
After making several interrupts, I get error messages on the HB server:
unable to load the script file [my script file]. Error=[The operation completed successfuly].
Unable to compile the script.
After a few more interrupts, the server crashes with error:
AppName: housebotserver.exe AppVer: 2.0.0.0 modName: ntdll.dll
ModVer: 5.1.2600.1217 Offset: 00019ecd
Any suggestions on how else to interrupt tasks or to fix the problem?
Thanks,
Yoram