For some strange reason, I can't run any functions as a new thread in my production environment, even though it works fine locally and fine on the staging server, which has identical specs as the production server (Windows 2003, IIS 6)
Here is my code:
System.Threading.Thread th = new System.Threading.Thread(TestFunction);
th.Start();
And this is the function:
public void TestFunction()
{
LogUtility.Log("hello world");
}
After th.Start, nothing else is accessed. Is there some setting that could cause this behavior? th.ThreadState is returning "running" for the duration of TestFunction.
(LogUtility.Log just writes the text to a file)
EDIT: This actually worked before and it just stopped working out of nowhere.