G
Gianluca
This one is a strange bug. The unhandled exception is generated only if
visual styles are enabled. It's very simple to reproduce, simply create a
windows application and add Application.EnableVisualStyles() in the Main
method. In the form put a combobox. Then create a second empty dialog form
Form2.
Hook up the comboBox1_TextChanged event and in there simpy add:
Form2 f = new Form2();
f.ShowDialog();
When you close the dialog the application will exit with a SEHException.
Comment out the Application.EnableVisualStyles() in Main and the exception
is gone.
/Gianluca
visual styles are enabled. It's very simple to reproduce, simply create a
windows application and add Application.EnableVisualStyles() in the Main
method. In the form put a combobox. Then create a second empty dialog form
Form2.
Hook up the comboBox1_TextChanged event and in there simpy add:
Form2 f = new Form2();
f.ShowDialog();
When you close the dialog the application will exit with a SEHException.
Comment out the Application.EnableVisualStyles() in Main and the exception
is gone.
/Gianluca