I have a program that runs a loop in a thread. Occasionally, it seems to hang. Last time, after a lot of investigation, I identified a line of code that could, under certain conditions, cause an error. In debug mode, I get an error. In normal execution - nothing. It just hangs. Is there any way...