i'm getting an odd execption on task creation in .net 4.0. i'm getting the exectpion on windows service with a Global Updomain unhandled execptions handler so i don't have the exact stack-"A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property." i think it occurs on the following code section:
for (int i = 0; i < _workers.Length; ++i)
{
int j = i; // copy
Task t1 = Task.Factory.StartNew(() =>
{
try
{
if (!_workers[j].Join(4000))
LogWriter.Trace("Failed to join thread", "ThreadFailureOnDispose");
}
catch (Exception ex)
{
OnLogged(ex.Message + ex.StackTrace);
}
});
}
anyone got an idea? is it something with the aggreated exception feature?