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

  • SEARCH
  • Home
  • 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 4607272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:40:46+00:00 2026-05-22T00:40:46+00:00

I recall reading about how exceptions could be caught without the use of try/catch.

  • 0

I recall reading about how exceptions could be caught without the use of try/catch. Basically when an exception is thrown such as “Unhandled exception” via derefencing a null pointer, there would be a process that is triggered even when a try/catch is not coded for the exception. I believe it had something to do with a top level library that you write then include in your code. Unfortunately documentation on such a method seems to be non-existent but I have seen/heard of such a method being done before. Could someone please explain how this is done?

  • 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-22T00:40:47+00:00Added an answer on May 22, 2026 at 12:40 am

    In C++, dereferencing a null pointer causes undefined behavior, which does not necessarily imply that an exception is thrown. On Unix systems, for example, a SIGSEGV signal is raised instead.

    On Windows, access violations raise a SEH exception. SEH exceptions are not the same as C++ exception; they are handled using __try/__except statements (as opposed to try/catch statements). An unhandled SEH exception invokes unhandled exception filter, which you can set using SetUnhandledExceptionFilter.

    #include <Windows.h>
    #include <iostream>
    
    LONG WINAPI MyFilter(EXCEPTION_POINTERS * /*ExceptionInfo*/)
    {
        std::cout << "An uncaught exception was detected!\n";
    
        // Ultimately causes Windows Error Reporting to be invoked.
        // Use EXCEPTION_EXECUTE_HANDLER to silently terminate the application.
        return EXCEPTION_CONTINUE_SEARCH;
    }
    
    int main()
    {
        SetUnhandledExceptionFilter(MyFilter);
        *(char volatile *)0 = 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I seem to recall reading about a way to 'reduce' the size of template
I recall reading about a broadcast receiver interface from the sync adapter or some
I recall reading an article about constructors being evil (but can't place it). The
Background: A long time I remember reading about a Java library that was created
I seem to recall reading there was an important difference between method overloading (and
what's happening is i'm reading encryption packets, and I encounter a corrupted packet that
Spring Roo can be use in existing projects that follow standard maven layout .
I'm reading documentation for CFITSIO (C library for working with FITS images and other
If I recall correctly that when I used yield inside using SqlConnection blocks I
I have a video class, which can have many tags associated with it. A

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.