The first error may be due to your detached threads not returning. A thread must return (or reach the end of it's code block) before it can be joined or cleanly exited. Your thread may be hanging in that while<$out> loop.
In reply to Re: cleanly exiting threads
by zentara
in thread cleanly exiting threads
by JoeKamel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |