By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

Unhandled Exceptions - EXE vs. IDE

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "=?Utf-8?B?U3RldmUgQmx1bWVuc3RlaW4=?=" <St**************@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.