Mefistos
May 2nd, 2008, 01:11 PM
I get this exception when I tying...
SaveFileDialog dlg = new SaveFileDialog();
dlg.Filter = "binary files (*.bin)|*.bin";
dlg.FilterIndex = 1;
dlg.RestoreDirectory = true;
dlg.ShowDialog(); //Exception throwed
Function Main() is already marked with attribute [STAThread]
My program consists with many threads .
SaveFileDialog dlg = new SaveFileDialog();
dlg.Filter = "binary files (*.bin)|*.bin";
dlg.FilterIndex = 1;
dlg.RestoreDirectory = true;
dlg.ShowDialog(); //Exception throwed
Function Main() is already marked with attribute [STAThread]
My program consists with many threads .