I have a thread object that works fairly well most of the time. Every now and then the Thread doesn't return and the program hangs.
When I pause the program and look at the execution flow, it looks like the data flow is inconsistent. I can hoover over the line and see the value of the output of an formula but the input that it feeds will be empty.
I have taken great care in controlling the flow since the thread objects seems unforgiving, unlike user objects. I also only use embedded functions and unique variables inside the Thread Object. I've already ran into and solved those issues.
So what I'm wondering is: How can I detect this hang and Exit the Thread? (like a timeout pin)
I need this program to run autonomously.
Thanks
Randy
Edited by: Randy M on Jun 15, 2015 6:49 PM
When I pause the program and look at the execution flow, it looks like the data flow is inconsistent. I can hoover over the line and see the value of the output of an formula but the input that it feeds will be empty.
I have taken great care in controlling the flow since the thread objects seems unforgiving, unlike user objects. I also only use embedded functions and unique variables inside the Thread Object. I've already ran into and solved those issues.
So what I'm wondering is: How can I detect this hang and Exit the Thread? (like a timeout pin)
I need this program to run autonomously.
Thanks
Randy
Edited by: Randy M on Jun 15, 2015 6:49 PM
Can you post some sample code that demonstrates the problem? That would help us indentify the cause.
In the meantime, make sure there is no user interface code in your thread object. That is known to cause issues.
-Bill