Unhandled Exceptions - EXE vs. IDE

G

Guest

My app is MDI written in VB .NET. The parent opens a child form. The child gets an error in the load event handler which doesn't have an error handler. Executing in the IDE, the error is properly passed back to the error handler of the parent, a message is displayed and the child form is closed. However, when the app is built and executed from the desktop, the error is NOT passed back to the parent and a fatal error occurs saying that an unhandled exception has occurred in the app. The title bar of the error indicates that the error was issued by Microsoft .NET Framework.
Has anyone out there seen this one? Is it a bug in the framework? Any help will be greatly appreciated.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?U3RldmUgQmx1bWVuc3RlaW4=?= said:
My app is MDI written in VB .NET. The parent opens a child form. The
child gets an error in the load event handler which doesn't have an
error handler. Executing in the IDE, the error is properly passed back
to the error handler of the parent, a message is displayed and the child
form is closed. However, when the app is built and executed from the
desktop, the error is NOT passed back to the parent and a fatal error
occurs saying that an unhandled exception has occurred in the app. The
title bar of the error indicates that the error was issued by Microsoft
.NET Framework.

What exception? Maybe adding an error handler to
'Application.ThreadException' helps.
 

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