private void OnChanged(object source, FileSystemEventArgs e) { string fileName = e.Name; lock (copierList) { Copier copier = new Copier(e.FullPath, this.targetPath + @"\\" + fileName); copier.IfDel = ifDel; copierList.Push(copier); copier = null; Console.WriteLine("File: " + e.Name + " " + e.ChangeType); Monitor.Pulse(copierList); } }