09-05-2016 08:28 AM
Hi,
I'm creating custom operator interface. I want to terminate all executions when user clicks exit button without asking him for the decision (terminate/abort/kill etc). So I created event callback for "exit button click" (using Register Event Callback primitive).
Now when I trying to run it it always hangs (works only if highlight execution is enabled).
Callback content is shown in the snippet below. I'm terminating all executions and then waits until all executions completes its terminating. After that I'm shutting it down.
I'm aware of the whole thing of "use other 2 execution system" and I tried it in different ways but without any success... and still I'm not sure when I need to use different execution system and how. For example how can I know that TS method is synchronous?
Please help 🙂
09-05-2016 09:05 AM
Using Desktop Execution Trace Toolkit I can see that it hangs on the first Property Node.
09-05-2016 10:14 AM
It seems that it initially was hanging because I changed "User Parameter" typdef and registartion of event callbacks needs strict VI reference.
Now, it is working, but still not in a way I would like it to work.
If I run this code my Executions NumIncomplete in a loop doens't decrements (refreshes) 😞