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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:24:51+00:00 2026-05-25T14:24:51+00:00

I would like to disable (in a VS2010 C program) the crash dialog window

  • 0

I would like to disable (in a VS2010 C program) the crash dialog window which pops up on screen when a GPF occurred (You know the xxx.exe as stopped working)

I tried on win2008 and win7:

 - SetErrorMode(SetErrorMode(SEM_NOGPFAULTERRORBOX)|SEM_FAILCRITICALERRORS);
 - try/catch (with SEH, but some parts of the code aren't wrapped in)
 - SetUnhandledExceptionFilter()

Nothing works… still with this damned window

Do I forget something ?

The only thing which is working is to modify the “DontShowUI” key in register base
(HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting)
but it’s just not clean, and I would prefer a “coding” solution (and I cannot change the register into my code !)

Do you have an idea ? (except fixing the program itself to avoid the GPF of course 🙂

Thanks…

note : Interesting, under Cygwin the crash dialog doesn’t appear !

  • 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-25T14:24:52+00:00Added an answer on May 25, 2026 at 2:24 pm

    The best way to disable the crash box is to remove whatever code is causing your program to crash. This box will never appear for a correct program.

    Edit: As for what’s actually wrong with your call to SetErrorMode, it should be:

    SetErrorMode(SetErrorMode(SEM_NOGPFAULTERRORBOX)
        |SEM_FAILCRITICALERRORS|SEM_NOGPFAULTERRORBOX);
    

    or similar. I think you misread the blog article you cited in the comments.

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

Sidebar

Related Questions

I would like to disable displaying of the content of the window when resizing,
I would like to know if there is a way to disable automatic loading
I know this has been asked previously however I would like to disable the
When I press a button, I would like to disable screen rotation on all
I have a anchor tag which I would like to disable or enable depending
I have a div which is creating through ajax, i would like to disable
I have a button that I would like to disable when the form submits
I would like to enable/disable some code based on a custom solution configuration I
I have two select lists, I would like jquery to either remove or disable
I would like to disable client side validation on certain fields in my user

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.