OK, I'm using VS 2005 and I am having a difficult Time in creating and starting a thread. Below is my code that should start a thread, but the last output on the debugger says "A first chance exception of type 'System.IndexOutOfRangeException' occurred in FTPClient.exe" and the process doesn't kick off.
The below code is what I wrote in C# VS 2003 and it works.Code:private void Form1_Load(object sender, EventArgs e)
{
Thread newThread = new Thread(LoadConfig);
newThread.Start();
}
Any answers or ideas are greatly appreciated.Code:Thread newThread = new Thread(new ThreadStart(Go));
newThread.Start();
Thanks,
Josh