I get the following exception when calling saveFileDialog.ShowDialog() in a background thread:
saveFileDialog.ShowDialog()
Current thread must be set to single thr
Solution very easy; Just add this on top of the Main method [STAThread]
[STAThread]
So your main method should look like this
[STAThread] static void Main(string[] args) { .... }
It works for me.