So I was testing a script to force display of a "emergency screen" when my water sensor in the basement went off.
And I was getting an error "...Exception has been thrown by the target of an invocation.-{0x3E}..." after the script executed.
So I gutted it and left only the hardcoded client action which executes but is so damn slow to pull up the screen (10-20s).
Issues:
Scripts Code:
Log File Displays:
And I was getting an error "...Exception has been thrown by the target of an invocation.-{0x3E}..." after the script executed.
So I gutted it and left only the hardcoded client action which executes but is so damn slow to pull up the screen (10-20s).
Issues:
- Slow... (I think I saw a resolution to this in a post somewhere but I cannot find it for the life of me now...
- And what's with the error???
Scripts Code:
PHP Code:
Sub Main(Parm As Object)
hs.PluginFunction("HSTouch Server", "", "ClientAction", {60,"TestPad:Lee's House","Emergency",""})
End Sub
PHP Code:
Jul-15 11:21:57 PM HSTouch Server Debug 11:21:27:8243 ~ Client action to single client from SINGLE: CLIENTACTION|Screen_Show_Only|Emergency|{0x2}
Jul-15 11:21:57 PM Error 3 Running script Test.vb :Exception has been thrown by the target of an invocation.-{0x3E}Does entry point Main exist in script? at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at A.c17b105f989efe61e5979e67bec1ef734.cffd66cb0782c50126727e3fa75582d7a()
Jul-15 11:21:26 PM HSTouch Server Debug 11:21:26:3400 ~ Running script: Test.vb
Jul-15 11:21:26 PM HSTouch Server Debug 11:21:26:3243 ~ Client command: (TestPad:Lee's House) RUNSCRIPT
Comment