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

Find and share HowTos to various installations / configurations!
Search

Post Reply
2 posts • Page 1 of 1
slamkwon
Posts: 19
Joined: Wed Oct 10, 2018 2:20 am

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

Post 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!

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

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

Post by gschijndel »

The normal stop of control managers can be delayed a bit by the callback function of 'sysConnect' on the event 'exitRequested'.

Post Reply
2 posts • Page 1 of 1