Announcement

Collapse
No announcement yet.

hs.TriggerEventAndWait does not seem to return once event is run

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

    hs.TriggerEventAndWait does not seem to return once event is run

    Has anyone else noticed that hs.TriggerEventAndWait does not seem to return when the event is done. It seems to hang and never come back.

    Is this a known bug?
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    #2
    Looks like I have the same problem. Here is what I see in the log:
    05/04/2013 5:01:28 PM - Event - START WAIT
    then it hangs, and the event is never triggered

    Have you ever find a way to make it work?

    Comment


      #3
      answering my own question:

      Looks like you can't call this function from an "HomeSeer Event" thread because it creates a deadlock situation.

      The solution is to create a thread from your script/plugin and call
      TriggerEventAndWait from there.

      Comment


        #4
        has this been fixed?

        how do you "The solution is to create a thread from your script" ? Any example.

        Comment


          #5
          Originally posted by geeTee View Post
          has this been fixed?

          how do you "The solution is to create a thread from your script" ? Any example.
          Ah, advanced programming! This may get you started:

          https://docs.microsoft.com/en-us/dot...-and-threading

          Comment


            #6
            has this been fixed?

            Comment

            Working...
            X