Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8630303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:01:46+00:00 2026-06-12T09:01:46+00:00

(see update below) While running within the VisualStudio 2010 environment, I can easily tell

  • 0

(see update below)

While running within the VisualStudio 2010 environment, I can easily tell if my Winform application causes an exception. I just have to go to Debug | Exceptions and make sure that both columns of checkboxes are checked. I then run the application and if any exceptions then I get dropped straight into the offending piece of code.

How do I determine exceptions during testing, when I give test build to a tester. I do not want the tester to run within Visual Studio, just as a regular user. I still want to know if there are exceptions and the pertinent details.

Obviosualy, I should be able to control the process, so that when the code gets released normal execution happens.

Yes, I know about and use try/catch blocks, but I am talking about a method similar to Visual Studio exception catcher and reporter, just possibly compiled into the product and used for deployment to beta testers.

Maybe Visual Studio has such a feature, in which case where and how to set up, or possibly a third party component.

[Update:
I added two sub-questions, which you can find at Unhandled Exception next line or exit.

The solution mentioned below sounds great and with a tweak probably works, just not at the moment.

Inside the Visual Studio both 2010 and now 2012 works great. The exception handler gets called, okay after VS breaks at the line and I say to continue. I decided to test outside the VS2012 IDE, good thing for that. The OS traps the bug, shows the standard an “An Unhandled Exception Occurred” dialog giving the details along with a continue and quit buttons. Selecting continue, just continues the application with no trapping into my uber exception handler. Selecting quite, whites-out the application and displays the standard close window dialog. The quit button also does not call my uber handler.

The purpose is so that my exception handler gets called. I do not need an uber exception handler if I am working inside the VS2012 IDE. The purpose of the handler is for end users and beta testers, namely anyone other than myself and who will not have my development station.

So unless I am missing something, the question is still open.

There are code samples in the other question, enough to copy and paste and create a test application in a couple minutes time.
]

Thanks in advance,

Sarah

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:01:47+00:00Added an answer on June 12, 2026 at 9:01 am

    Okay, the Google Uberlord took pitty upon me and I found this wonderful article solving the problem. Praise to the almighty Google.

    Here is the link:
    http://www.switchonthecode.com/tutorials/csharp-tutorial-dealing-with-unhandled-exceptions

    Basically, JRadness had the right idea, just slightly in error. He should have used

    Application.ThreadException += 
    

    new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

    rather than

    AppDomain.CurrentDomain.UnhandledException += 
        new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
    

    The author on Switch on the Code talked of three methods, the first of which is what JRadness proposed and does not work for Windows forms.

    The autor even solved my other question of Continue and Abort. The OS got bypassed.

    Yeah!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE see below I am not sure how to populate a list or vector
UPDATE (spoiler): This question is answered (see David Carlisle answere below) and it looks
See UPDATE below for what I now know is the crux of the problem.
* Solved, see Update below I have a class with the two properties listed
See update below... I'm writing a Python simulation that assigns an arbitrary number of
I am trying to update data while I am reading them from database, see
ORIGINAL (see UPDATED QUESTION below) I am designing a new laboratory database that tests
UPDATED See post #3 below. There is a need to upload a file to
Updated question, see below I'm starting a new project and I would like to
(Please see update at bottom) I've looked at dozens of questions and haven't been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.