I have a thread that get I initialize like this:
Utility.Log("1");
myThread = new Thread(new ThreadStart(delegate
{
Utility.Log("2");
and then the rest of the thread's execution. The weird thing is, despite that whole thing being wrapped in a try/catch, I'm only seeing a 1 in my log file (no 2), and I'm getting an unhandled System.IO.FileLoadException. I've tried also wrapping the entire body of the delegate in a try/catch, but I'm still getting that exception, and the Event Viewer is saying that the top most method of the exception is that method. It's very bizarre.
Any ideas of how I can track this down, or at least to properly catch the exception?