Hi, you are not supposed to touch a Control from a thread that did not create the Control. While your code is using several InvokeRequired/Invoke patterns, it is also not using them in several locations, see: 1. if (this.WindowState == FormWindowState.Minimized) is probably OK, but not documented to be OK 2. infile = txtboxSelectFile.Text; is probably not OK (not documented, I guess it is not OK for Controls that allow text editing) 3. outfile = saveFileDialog1.FileName; is most likely not OK, file dialogs are known to be critical (e.g. you need STAThread for them) IMO you should fix all of the above. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.