Handling errors in a thread

PJRoyle

Member
Joined
Jun 7, 2004
Messages
11
Location
Uckfield, East Sussex, UK
Programming Experience
10+
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 I can get this error to appear? Will it be picked up correctly by Try...Catch code? Do I need to find another way of doing what I'm doing without the separate thread?

Sorry if this is a stupid question, but I'm not too au fait with threading.

Peter Royle
 
Back
Top