Reply To: OnExecute () not called :(

NodeCanvas Forums Support OnExecute () not called :( Reply To: OnExecute () not called :(

#12864
alexander wieser
Participant

Hi there,

thank you for the hint, it was exactly what happened. The events where caught by all tasks listening for them.
Instead of attaching the event inside the OnExecute and detaching it afterwards we decided to use a different approach since this solution will still fail should two event tasks run asynchronously at the same time. We simply added a token to be passed along the event which the task can then use to identify itself as the originator and ignore all other events.

Thank you very much 🙂
4

Alex

Attachments:
  1. 4.jpg