How do I get back the “… has stopped working” message box?
I have a console application that will crash as soon as it is started, but display some very useful information (for my debugging) before it terminates.
I used to launch this application on Windows 8.1, where a message box with the error message "... has stopped working" would appear. The console window would remain open for me to read the console output until I clicked "Close the program" in the error message box.
I am now migrating to Windows 10. Unfortunately, Windows 10 does not display the "... has stopped working" message box. Instead, it closes the console automatically as soon as the application has crashed.
I am seeing the same phenomenon on my contacts' Windows 10 machines, although I am also being told about one Windows 10 machine where the error message box still gets shown.
Is there any way to force Windows 10 to show the message box (globally, or just for that one application) again?
I have tried various workarounds, but they all come with drawbacks:
- If I launch the console application from a console window (
cmd
), it will still open an additional console window, thus my console window remains blank. (Maybe this is linked to the application in question requiring elevated permissions and asking for these upon launch?) - Doing the same and piping the output to a file just produces a blank file.
- I can modify the source code of the console application in question to wait for some input in the end, but it's a change that I must do only in my local working copy, and it means I have to rebuild said application on a daily basis (as my local binary will otherwise be overwritten by the latest version from a build server).
- I can find the same output in the Windows event log, but that's quite a tedious alternative, given that the event log viewer is a pretty slow application and it tends to bury the relevant data among thousands of other uninteresting log entries.
windows-10 runtime-error
|
show 1 more comment
I have a console application that will crash as soon as it is started, but display some very useful information (for my debugging) before it terminates.
I used to launch this application on Windows 8.1, where a message box with the error message "... has stopped working" would appear. The console window would remain open for me to read the console output until I clicked "Close the program" in the error message box.
I am now migrating to Windows 10. Unfortunately, Windows 10 does not display the "... has stopped working" message box. Instead, it closes the console automatically as soon as the application has crashed.
I am seeing the same phenomenon on my contacts' Windows 10 machines, although I am also being told about one Windows 10 machine where the error message box still gets shown.
Is there any way to force Windows 10 to show the message box (globally, or just for that one application) again?
I have tried various workarounds, but they all come with drawbacks:
- If I launch the console application from a console window (
cmd
), it will still open an additional console window, thus my console window remains blank. (Maybe this is linked to the application in question requiring elevated permissions and asking for these upon launch?) - Doing the same and piping the output to a file just produces a blank file.
- I can modify the source code of the console application in question to wait for some input in the end, but it's a change that I must do only in my local working copy, and it means I have to rebuild said application on a daily basis (as my local binary will otherwise be overwritten by the latest version from a build server).
- I can find the same output in the Windows event log, but that's quite a tedious alternative, given that the event log viewer is a pretty slow application and it tends to bury the relevant data among thousands of other uninteresting log entries.
windows-10 runtime-error
2
Aside from fixing the issue, anytime this happens an eventlog entry is always made, so you can always read the text there.
– LPChip
Jan 7 at 13:38
... has stopped working
message is still displayed on Windows 10 when applicable, so if it's not happening, then the error is caused by something that prevents it.... has stopped working
should only happen when Windows believes the executable is hung, if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows. If your program requires elevated permissions on Windows 10, and it didn't on Windows 8, that sounds like a configuration difference between the two installations.
– Ramhound
Jan 7 at 13:40
@LPChip: Right, forgot about that alternative. I mentioned it in an additional item at the end now, thanks.
– O. R. Mapper
Jan 7 at 13:44
@Ramhound: The program requires elevated permissions on both Windows 8 and 10. "if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows" - I cannot tell whether this is true or false. I just see that the application invariably (on both Windows 8 and 10) crashes with an unhandledReflectionTypeLoadException
, whereupon on Win8, the "... has stopped working" message appears, while it does not on Win10.
– O. R. Mapper
Jan 7 at 13:48
1
"tends to bury the relevant data among thousands of other uninteresting log entries." Leave event viewer open (use refresh when needed), you can filter or search by event number also, its not tedious.
– Moab
Jan 7 at 13:57
|
show 1 more comment
I have a console application that will crash as soon as it is started, but display some very useful information (for my debugging) before it terminates.
I used to launch this application on Windows 8.1, where a message box with the error message "... has stopped working" would appear. The console window would remain open for me to read the console output until I clicked "Close the program" in the error message box.
I am now migrating to Windows 10. Unfortunately, Windows 10 does not display the "... has stopped working" message box. Instead, it closes the console automatically as soon as the application has crashed.
I am seeing the same phenomenon on my contacts' Windows 10 machines, although I am also being told about one Windows 10 machine where the error message box still gets shown.
Is there any way to force Windows 10 to show the message box (globally, or just for that one application) again?
I have tried various workarounds, but they all come with drawbacks:
- If I launch the console application from a console window (
cmd
), it will still open an additional console window, thus my console window remains blank. (Maybe this is linked to the application in question requiring elevated permissions and asking for these upon launch?) - Doing the same and piping the output to a file just produces a blank file.
- I can modify the source code of the console application in question to wait for some input in the end, but it's a change that I must do only in my local working copy, and it means I have to rebuild said application on a daily basis (as my local binary will otherwise be overwritten by the latest version from a build server).
- I can find the same output in the Windows event log, but that's quite a tedious alternative, given that the event log viewer is a pretty slow application and it tends to bury the relevant data among thousands of other uninteresting log entries.
windows-10 runtime-error
I have a console application that will crash as soon as it is started, but display some very useful information (for my debugging) before it terminates.
I used to launch this application on Windows 8.1, where a message box with the error message "... has stopped working" would appear. The console window would remain open for me to read the console output until I clicked "Close the program" in the error message box.
I am now migrating to Windows 10. Unfortunately, Windows 10 does not display the "... has stopped working" message box. Instead, it closes the console automatically as soon as the application has crashed.
I am seeing the same phenomenon on my contacts' Windows 10 machines, although I am also being told about one Windows 10 machine where the error message box still gets shown.
Is there any way to force Windows 10 to show the message box (globally, or just for that one application) again?
I have tried various workarounds, but they all come with drawbacks:
- If I launch the console application from a console window (
cmd
), it will still open an additional console window, thus my console window remains blank. (Maybe this is linked to the application in question requiring elevated permissions and asking for these upon launch?) - Doing the same and piping the output to a file just produces a blank file.
- I can modify the source code of the console application in question to wait for some input in the end, but it's a change that I must do only in my local working copy, and it means I have to rebuild said application on a daily basis (as my local binary will otherwise be overwritten by the latest version from a build server).
- I can find the same output in the Windows event log, but that's quite a tedious alternative, given that the event log viewer is a pretty slow application and it tends to bury the relevant data among thousands of other uninteresting log entries.
windows-10 runtime-error
windows-10 runtime-error
edited Jan 7 at 13:44
O. R. Mapper
asked Jan 7 at 13:36
O. R. MapperO. R. Mapper
2472520
2472520
2
Aside from fixing the issue, anytime this happens an eventlog entry is always made, so you can always read the text there.
– LPChip
Jan 7 at 13:38
... has stopped working
message is still displayed on Windows 10 when applicable, so if it's not happening, then the error is caused by something that prevents it.... has stopped working
should only happen when Windows believes the executable is hung, if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows. If your program requires elevated permissions on Windows 10, and it didn't on Windows 8, that sounds like a configuration difference between the two installations.
– Ramhound
Jan 7 at 13:40
@LPChip: Right, forgot about that alternative. I mentioned it in an additional item at the end now, thanks.
– O. R. Mapper
Jan 7 at 13:44
@Ramhound: The program requires elevated permissions on both Windows 8 and 10. "if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows" - I cannot tell whether this is true or false. I just see that the application invariably (on both Windows 8 and 10) crashes with an unhandledReflectionTypeLoadException
, whereupon on Win8, the "... has stopped working" message appears, while it does not on Win10.
– O. R. Mapper
Jan 7 at 13:48
1
"tends to bury the relevant data among thousands of other uninteresting log entries." Leave event viewer open (use refresh when needed), you can filter or search by event number also, its not tedious.
– Moab
Jan 7 at 13:57
|
show 1 more comment
2
Aside from fixing the issue, anytime this happens an eventlog entry is always made, so you can always read the text there.
– LPChip
Jan 7 at 13:38
... has stopped working
message is still displayed on Windows 10 when applicable, so if it's not happening, then the error is caused by something that prevents it.... has stopped working
should only happen when Windows believes the executable is hung, if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows. If your program requires elevated permissions on Windows 10, and it didn't on Windows 8, that sounds like a configuration difference between the two installations.
– Ramhound
Jan 7 at 13:40
@LPChip: Right, forgot about that alternative. I mentioned it in an additional item at the end now, thanks.
– O. R. Mapper
Jan 7 at 13:44
@Ramhound: The program requires elevated permissions on both Windows 8 and 10. "if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows" - I cannot tell whether this is true or false. I just see that the application invariably (on both Windows 8 and 10) crashes with an unhandledReflectionTypeLoadException
, whereupon on Win8, the "... has stopped working" message appears, while it does not on Win10.
– O. R. Mapper
Jan 7 at 13:48
1
"tends to bury the relevant data among thousands of other uninteresting log entries." Leave event viewer open (use refresh when needed), you can filter or search by event number also, its not tedious.
– Moab
Jan 7 at 13:57
2
2
Aside from fixing the issue, anytime this happens an eventlog entry is always made, so you can always read the text there.
– LPChip
Jan 7 at 13:38
Aside from fixing the issue, anytime this happens an eventlog entry is always made, so you can always read the text there.
– LPChip
Jan 7 at 13:38
... has stopped working
message is still displayed on Windows 10 when applicable, so if it's not happening, then the error is caused by something that prevents it. ... has stopped working
should only happen when Windows believes the executable is hung, if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows. If your program requires elevated permissions on Windows 10, and it didn't on Windows 8, that sounds like a configuration difference between the two installations.– Ramhound
Jan 7 at 13:40
... has stopped working
message is still displayed on Windows 10 when applicable, so if it's not happening, then the error is caused by something that prevents it. ... has stopped working
should only happen when Windows believes the executable is hung, if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows. If your program requires elevated permissions on Windows 10, and it didn't on Windows 8, that sounds like a configuration difference between the two installations.– Ramhound
Jan 7 at 13:40
@LPChip: Right, forgot about that alternative. I mentioned it in an additional item at the end now, thanks.
– O. R. Mapper
Jan 7 at 13:44
@LPChip: Right, forgot about that alternative. I mentioned it in an additional item at the end now, thanks.
– O. R. Mapper
Jan 7 at 13:44
@Ramhound: The program requires elevated permissions on both Windows 8 and 10. "if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows" - I cannot tell whether this is true or false. I just see that the application invariably (on both Windows 8 and 10) crashes with an unhandled
ReflectionTypeLoadException
, whereupon on Win8, the "... has stopped working" message appears, while it does not on Win10.– O. R. Mapper
Jan 7 at 13:48
@Ramhound: The program requires elevated permissions on both Windows 8 and 10. "if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows" - I cannot tell whether this is true or false. I just see that the application invariably (on both Windows 8 and 10) crashes with an unhandled
ReflectionTypeLoadException
, whereupon on Win8, the "... has stopped working" message appears, while it does not on Win10.– O. R. Mapper
Jan 7 at 13:48
1
1
"tends to bury the relevant data among thousands of other uninteresting log entries." Leave event viewer open (use refresh when needed), you can filter or search by event number also, its not tedious.
– Moab
Jan 7 at 13:57
"tends to bury the relevant data among thousands of other uninteresting log entries." Leave event viewer open (use refresh when needed), you can filter or search by event number also, its not tedious.
– Moab
Jan 7 at 13:57
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1391501%2fhow-do-i-get-back-the-has-stopped-working-message-box%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1391501%2fhow-do-i-get-back-the-has-stopped-working-message-box%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Aside from fixing the issue, anytime this happens an eventlog entry is always made, so you can always read the text there.
– LPChip
Jan 7 at 13:38
... has stopped working
message is still displayed on Windows 10 when applicable, so if it's not happening, then the error is caused by something that prevents it.... has stopped working
should only happen when Windows believes the executable is hung, if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows. If your program requires elevated permissions on Windows 10, and it didn't on Windows 8, that sounds like a configuration difference between the two installations.– Ramhound
Jan 7 at 13:40
@LPChip: Right, forgot about that alternative. I mentioned it in an additional item at the end now, thanks.
– O. R. Mapper
Jan 7 at 13:44
@Ramhound: The program requires elevated permissions on both Windows 8 and 10. "if the application is crashing with an unhandled exception, the message wouldn't be displayed on any version of Windows" - I cannot tell whether this is true or false. I just see that the application invariably (on both Windows 8 and 10) crashes with an unhandled
ReflectionTypeLoadException
, whereupon on Win8, the "... has stopped working" message appears, while it does not on Win10.– O. R. Mapper
Jan 7 at 13:48
1
"tends to bury the relevant data among thousands of other uninteresting log entries." Leave event viewer open (use refresh when needed), you can filter or search by event number also, its not tedious.
– Moab
Jan 7 at 13:57