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 516337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:43:15+00:00 2026-05-13T07:43:15+00:00

Is there anyway to catch all uncaught exceptions in a MFC VC++ 2008 application?

  • 0

Is there anyway to catch all uncaught exceptions in a MFC VC++ 2008 application? Is there something like this Java code:

Thread.currentThread().setUncaughtExceptionHandler(
new Thread.UncaughtExceptionHandler() {
   public void uncaughtException(Thread t, Throwable e) {
       System.out.println("Oops! We have a exception in Thread '" + t.getName() + "': " + e.toString());
   }
});

The handler should preferably catch all types of exceptions.

  • 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-05-13T07:43:15+00:00Added an answer on May 13, 2026 at 7:43 am

    It depends what you are trying to catch. If you just want C++ exceptions then look at setting your own handlers using set_unexpected or set_terminate. If you want all Windows exceptions then you use SetUnhandledExceptionFilter to specify a top level handler.

    Catching all Windows exceptions should in most cases catch all C++ exceptions as well but it is not always the case so you are best to use both approaches to catch as much as possible. There are some oddities with the last CRTs (see this) which might mean not all exceptions get caught.

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

Sidebar

Related Questions

Is there anyway to create a vanity url catch all route whilst maintaining the
I would like to have some kind of catch-all exceptions mechanism in the root
The title explains all... I have this snippet of code in my application: String
Is there any way to catch all syscalls on Linux? The only solution I
Is there anyway in Java to delete data (e.g., a variable value, object) and
Is there anyway to combine all resources into a single exe file such as
Is there any way I could catch any uncaught exception in javascript? I mean,
I wondering if there is anyway to achieve a url like http://www.mycompany.com/user in MVC
Is there anyway to have a sort of virtual static member in C++? For
Is there anyway to configure a WCF service with a failover endpoint if the

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.