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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:24:26+00:00 2026-06-06T03:24:26+00:00

My program compiles fine, but crashes everytime throw (not inside of a try…catch block)

  • 0

My program compiles fine, but crashes everytime throw (not inside of a try…catch block) is called.

Here are the command like arguments used for all files in the project:

mingw32-g++.exe -fexceptions -DWIN32 -D_WINDOWS -D_MBCS -DNO_SOCKLEN_T -DDONTUSEMEMMANAGER -Wall -g -W -fexceptions -DDEBUG

(I know that Wall makes W unnecessary and that I have -fexceptions in there twice.)

edit: I know that the there’s actually nothing wrong with that behaviour. the thing is, it used to work aka the program wouldn’t crash. but some days ago I made a change to some of the files , compiled again and all of a sudden it crashed

  • 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-06T03:24:28+00:00Added an answer on June 6, 2026 at 3:24 am

    Well, this is the expected behavior. The standard says [except.handle]:

    If no matching handler is found, the function std::terminate() is called; […]

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

Sidebar

Related Questions

I have written a calculator program which compiles fine, but crashes when I hit
I'm writing a C program. It compiles fine but when I try to run
My program compiles fine, but gets core dumped when an overloaded function is called.
The following code compiles fine, but does not allow the user to choose whether
My program will compile and run fine but it crashes when im in the
I'm using MinGw on Windows 7. The following simple program compiles fine, but the
This program compiles fine but seg faults when running the value->getSmall in Period::display() .
when i run my program it compiles fine but when it runs i get
So the program compiles fine, and the executable is generated in $(SolutionDir)/Debug. When I
I have the following program which compiles fine and with no errors or warnings:

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.