public void runMultipleTests() { if (fileNum <= files.Length) { thisTime.updateTime(); infoTextBox.AppendText(thisTime.getTime() + "Parsing Test Cases from file [" + files[fileNum] + "]\n"); if (thisTestFile != null) { //remove the last test case file from memory thisTestFile = null; GC.Collect(); } //create a new test case file thisTestFile = new TestCaseFile(this, files[fileNum]); //create and start this new test testThread = new Thread(new ThreadStart(thisTestFile.InstanceMethod)); testThread.Start(); //move onto the next test case file if we have one fileNum++; } }