disable crash screen

Posted on 2011-10-28
Last Modified: 2012-05-12
I use a dll that sometimes crashes therefore I use the dll in a separate process.

However when extra process crashes it displays a screen with "... has encountered a problem and needs to close"

I would like to disable this window

I have allready tried

1. WerAddExcludedApplication
this removes the "upload information to microsoft" button, but a crash screen is still displayed

__try {...dll crashes...]


However a crash screen is still displayed - it seems that the dll fails with an exception that I am not able to catch
Question by:pindemad2
    LVL 86

    Accepted Solution

    If that's a C++ exception, the runtime exception handler might kick in. Instead of only using the SEH frame, also add a C++ handler frame, e.g.
    void entry_point_for_actual_code() {
      // actual code goes here
    void cpp_frame() {
      try {
      catch(...) {
    void SEH_frame() {
         __try {
          } __except(1) {
    int main () {
      return 0;

    Open in new window


    Author Comment

    The problem is that I cannot catch the exception, the process terminates with a crash screen instead of going into the exception catch handler.
    LVL 86

    Expert Comment

    Have you tried the above?
    LVL 39

    Expert Comment

    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
    What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now