Sometimes it is necessary to force the background garbage collector to finish up all its tasks so a file recently used can be moved or deleted:


	//First force the garbage collector to finish up so the file is released from its last access
	GC::Collect();
	GC::WaitForPendingFinalizers();