Page 1 of 1

Stopping Managers - How to allow threads to complete instead of interrupting them

Posted: Thu Sep 05, 2019 6:20 am
by slamkwon
This is similar to my previous question about closing panels:

Closing panel - How to allow threads to complete instead of interrupting them
viewtopic.php?f=16&t=10734

When stopping a Control Manager from the the Console, Win CC OA interrupts any ongoing threads instead of closing or clearing them.
This is the same response that happens when closing a panel in run-time.
Is there a way of allowing the threads to complete rather than prematurely killing them?

This is possible in C, however, I'm unaware of how to do this in Win CC OA.

Thanks in advance!

Re: Stopping Managers - How to allow threads to complete instead of interrupting them

Posted: Fri Sep 06, 2019 3:39 pm
by gschijndel
The normal stop of control managers can be delayed a bit by the callback function of 'sysConnect' on the event 'exitRequested'.