SEHException on ShowDialog

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Hi everyone,

I'm getting some strange errors regarding the ShowDialog() method. I have
an MDI application. If I attempt to show a dialog box (ShowDialog) from a
child window, either an SEHException or NullRefernceException may be thrown.
This only seems to happen when I have other, specific child windows open in
the background. I am using databinding, and as far as I can tell, these
exceptions are thrown for windows with listboxes or datagrids that are bound
to tables in a dataset. If I open one child window only, no exceptions are
thrown, but if I open a different child window (one with, say a databound
datagrid and listbox), then flip back to the original window, and attempt to
open a dialog, then the exceptions are thrown.

I've read elsewhere that this can be caused by calling the
Application.EnableVisualStyles - but I'm not doing this. Any help would be
greatly apprecited.

Thanks,

Dave Hagedorn
 
Back
Top