Is there a way to catch a terminating thread in C# at the deepest level? I currently have:
AppDomain.CurrentDomain.UnhandledException += new System.UnhandledExceptionEventHandler(App_ThreadException);
at the start
~IOThread()
{
Console.WriteLine(string.Format("IOThread destroyed at: {0}", DateTime.Now));
}
A destructor.
a
try
{
Server.world.Tick();
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
try catch for a failed access or null ref. Yet still! Something is causing the processing thread to stop, and its not an infinite loop because if I do BreakAll in the debugger the processing thread is not in the threads list.
Any help would be greatly appreciated, I cannot even debug this issue.