I am using a third party library in my code. One of the methods on the third party library is getting a thread from the thread pool and doing some work on it. Unfortunately it is throwing an exception from its thread which I am unable to catch and handle because it is from a different thread.
I know that this exception is not going to cause the application any harm (it is not an out of memory exception or anything similar), so I'd like to log it and try the operation again later when it might succeed.
I am currently logging the exception by using the AppDomain UnhandledException event, but my application is still terminating. Is there any way I can catch this exception and handle it?