Announcement

Collapse
No announcement yet.

Why does this cause an exception?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why does this cause an exception?

    Just trying to write a new script and after I'm just trying to read in a value of the device I get this exception.
    Jul-05 9:33:35 AM Warning VB.Net script exception(0), re-starting: Object reference not set to an instance of an object.


    I've omitted the rest of the script when running and still...


    sub main(Parm As Object)

    Dim lumValue As Integer = hs.DeviceValue(1418)

    end sub

    This is just so basic that, I can't even comprehend this.

    Any idea?
    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

    #2
    Change main to Main
    Jon

    Comment


      #3
      OMG.... seriously. Thanks I knew I was low on coffee.

      That's embarrassing...
      HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

      Comment

      Working...
      X