SEHException on ShowDialog

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top