in reply to Re: Error trapping while capturing stdoutin thread Error trapping while capturing stdout