G
Guest
Hi
I have a main form (C#) which, when a button is pressed, I create a modal dialog (ShowDialog). This dialog has a combobox on it. In the eventhandler of SelectedIndex changed on this comboxbox I create another modal dialog which the user can dismiss. When that modal dialog returns, the whole application crashes with 'System.Runtime.InteropServices.SEHException: External component has thrown an exception.'
I've traced this (eventually) to Application.EnableVisualStyles() (followed by Application.DoEvents()). Take these lines out and it works....(as expected)...put them in and it fails miserably!
Anyone seen this before/got any workarounds?
Thanks
Jon
I have a main form (C#) which, when a button is pressed, I create a modal dialog (ShowDialog). This dialog has a combobox on it. In the eventhandler of SelectedIndex changed on this comboxbox I create another modal dialog which the user can dismiss. When that modal dialog returns, the whole application crashes with 'System.Runtime.InteropServices.SEHException: External component has thrown an exception.'
I've traced this (eventually) to Application.EnableVisualStyles() (followed by Application.DoEvents()). Take these lines out and it works....(as expected)...put them in and it fails miserably!
Anyone seen this before/got any workarounds?
Thanks
Jon