Re: Prohibiting "Visual C++ Runtime Error" dialog box?
From: Bae,Hyun-jik (imays_at_NOSPAM.hitel.NOSPAM.net)
Date: 12/10/04
- Next message: Gary Chang[MSFT]: "RE: simple VC7 UI questions"
- Previous message: Bae,Hyun-jik: "Re: Detecting where C++ exception occurs?"
- In reply to: Oleg Starodumov: "Re: Prohibiting "Visual C++ Runtime Error" dialog box?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Dec 2004 12:44:49 +0900
Thanks! :)
"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:upw0KKf3EHA.2568@TK2MSFTNGP10.phx.gbl...
>
> > I added some code to my program to do MiniDumpWriteDump on exception.
Many
> > exception or corruption cases are caught by MiniDumpWriteDump. However,
some
> > errors cannot be caught, because instead of MiniDumpWriteDump, an error
> > dialog box comes out and my program just pauses. The captured image of
the
> > message box provided by Visual C++ runtime is
> > http://www.imays.pe.kr/exception_dialog.jpg.
> >
> > Please reply me how to prohibit this "kind but no thanks" dialog box and
go
> > to MiniDumpWriteDump. Thanks in advance.
> >
>
> This is a CRT library error. It can be caused by one of two reasons:
> * Unhandled C++ exception
> * A non-exception error detected by CRT library (the list of these errors
> can be found in CMSGS.H file)
>
> When one of these errors has been detected by CRT library, it shows
> this error message and then terminates the application (calls abort()).
>
> The first kind (unhandled C++ exception) is intercepted when you install
> your own filter using SetUnhandledExceptionFilter function. Then your
filter
> is always called in case of unhandled C++ exception (assuming that it was
not
> overridden by somebody else, e.g. msvcr*.dll loaded by the process after
you
> have already installed your filter).
>
> I don't know a way to intercept errors of the second kind in release
builds
> (in debug build it can be done using custom CRT reporting hook, but in
> release builds it will not work). In release build, patching the CRT
library
> is the only way that comes to mind.
>
> Regards,
> Oleg
>
>
>
>
>
>
- Next message: Gary Chang[MSFT]: "RE: simple VC7 UI questions"
- Previous message: Bae,Hyun-jik: "Re: Detecting where C++ exception occurs?"
- In reply to: Oleg Starodumov: "Re: Prohibiting "Visual C++ Runtime Error" dialog box?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|