S
Sam Loveridge
Hi All.
I'm hoping someone can point me in the direction of a solution to unhandled
exceptions in MDI child forms causing the application to crash.
I've found various articles describing a method using Application.Run(new
MyMainParentForm) to place in the application's Sub Main to allow catching
of unhandled exceptions in the application. The problem I'm facing is that I
want to be able to trap unhandled exceptions at the MDI child form level to
allow me to clean up the child form gracefully without crashing any other
child forms that may be open, and to not then crash the application.
You can test this out by creating an MDI parent form, fire up multiple child
forms and then have a button on one of the child forms that generates an
unhandled exception. You'll find the whole app crashes.
Does anyone have a solution to this problem?
Thanks in advance,
Sam.
I'm hoping someone can point me in the direction of a solution to unhandled
exceptions in MDI child forms causing the application to crash.
I've found various articles describing a method using Application.Run(new
MyMainParentForm) to place in the application's Sub Main to allow catching
of unhandled exceptions in the application. The problem I'm facing is that I
want to be able to trap unhandled exceptions at the MDI child form level to
allow me to clean up the child form gracefully without crashing any other
child forms that may be open, and to not then crash the application.
You can test this out by creating an MDI parent form, fire up multiple child
forms and then have a button on one of the child forms that generates an
unhandled exception. You'll find the whole app crashes.
Does anyone have a solution to this problem?
Thanks in advance,
Sam.