Solved Silent crash
-
Hello
I would like to know if it's possible, how to make application crash silently ?
Without runtime lib and app.exe has stopped working -
@Slane said in Silent crash:
I would like to know if it's possible, how to make application crash silently ?
you mean close it? :)
why does it have to be a crash?!?!?! -
@Slane Do you mean you want to avoid that Windows shows the user a dialog telling him/her that the app crashed? If so: what's the point? The app will disappear anyway. Or do you want to reastart it immediately?
-
@raven-worx Because some user parameter may crash the application. For somme reason i never test it. And the application is started many time by an other.
so if the user make lot of errors windows spam windows error. I want avoid it by send only one error message by the master app
@jsulm I juste want get the return code of the application
3 for segmentation fault. For exampleAnd no error interface of window error interface of windows
-
@Slane
I doubt that this is possible. If it is however, it'll be some Windows-only way, and you'll have to find out what that is outside of Qt. -
Based on what @JonB said, a quick google search resulted in this:
-
@Slane said in Silent crash:
Because some user parameter may crash the application.
thats bad application design then IMHO.
-
@raven-worx
I think we all agree! But I think the OP is saying he has to work with that application as-is (e.g. it's third-party). -
@Slane
@JonB said in Silent crash:I think we all agree! But I think the OP is saying he has to work with that application as-is (e.g. it's third-party).
If thats the case you can try something like Breakpad to catch an exception.
-
So. Thanks for all your help
for now i gonna use :
SetErrorMode(SEM_NOGPFAULTERRORBOX); _set_error_mode (_OUT_TO_STDERR);
For disabling all error dialogue if there is a crash