CodePlexProject Hosting for Open Source Software
In WorkItem.cs the worker catches an exception thrown by the function. I see there a comment: // Save the exception so we can rethrow it later.
When is the exception re-thrown?
I really need the exceptions re-thrown into the parent code.
will this do?
public void Exception()
var smartThreadPool = new SmartThreadPool();
var result = smartThreadPool.QueueWorkItem(MethodThatThrows);
if (result.Exception != null)
throw (Exception) result.Exception ;
public void MethodThatThrows()
throw new Exception("hello");
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.