1

I am looking for code or options to disable a run time error. Instead showing that stupid message I just want a crash or to just continue. So in conclusion to do no show that message.

1 Answer 1

0

This question (or at least a very similar one) has been answered in Disable Microsoft Visual C Runtime Error

The errors need to be handled within your program to stop things going out of your control and the Microsoft dialog being displayed. The answer referred to explains how to capture these errors yourself. One way of implementing crash handling is to capture the minidumps for yourself, using something like CrashRpt into your software.

8
  • There isn't any method to avoid to show any kind of error. Preferable to be closed and not to show an error.
    – user558126
    May 7, 2012 at 1:04
  • Some errors cannot be suppressed (in recent versions of VC), but they only relate to possible security breaches - see the last post on here. May 7, 2012 at 2:06
  • but that is only a small subset of the possible errors. Do you see a specific run-time error message each time, or is this a general question ? May 7, 2012 at 2:11
  • Do you have a try/catch handler at the top level of your program ? May 7, 2012 at 2:12
  • I have a code, and it gives me an error, and with a Delphi auxilar software I am checking if the process is opened if not it will open it. So it is not a problem. The idea is to create to crash it automatically without showing any kind of staff on the screen.
    – user558126
    May 7, 2012 at 2:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.