Avoid Error Dialogs
Contents |
Studio 2015 products Visual Studio Team Services Visual Studio Code Visual Studio Dev Essentials Office Office Word/Excel/PowerPoint Microsoft Graph Outlook OneDrive/Sharepoint Skype Services Store Cortana Bing Application Insights Languages error messages examples & platforms Xamarin ASP.NET C++ TypeScript .NET - VB, C#, F# Server
Error Messages Best Practices
Windows Server SQL Server BizTalk Server SharePoint Dynamics Programs & communities Students Startups Forums MSDN Subscriber downloads Sign in
Error Message Guidelines
Search Microsoft Search Windows Dev Center Windows Dev Center Explore What’s new for Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build for enterprise Windows Store
Error Messages Ux
opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Explore What’s new for Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build error message examples text for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Debugging and Error Handling Error Handling About Error Handling About Error Handling Error Message Guidelines Error Message Guidelines Error Message Guidelines Error Mode Last-Error Code Notifying the User Message Tables Fatal Application Exit Error Message Guidelines TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Error Message Guidelines An error message is text that is displayed to describe a problem that has occurred that is preventing the user or the system from completing a task. The problem could result in data corruption or loss. Other message types include confirmations, warnings, and notifications. The guidelines in this topic are intended to help you write clear error messages that are easy to localize and useful for customers.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About friendly error messages examples Us Learn more about Stack Overflow the company Business Learn more about hiring developers error message 404 or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack list of error messages Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How can I supress all error dialogs https://msdn.microsoft.com/en-us/library/windows/desktop/ms679325(v=vs.85).aspx when a process crashes (I only want it to crash silently) up vote 5 down vote favorite 2 I have a process which I start with CreateProcess, then I wait for it to finish and check its exit code. I do this in batch mode and I don't want any message boxes to show up if the process crashes. It's enough to just return a nonzero http://stackoverflow.com/questions/9718695/how-can-i-supress-all-error-dialogs-when-a-process-crashes-i-only-want-it-to-cr exit code which would indicate failure. So far I've tried using LONG WINAPI MyUnhandledExceptionFilter(_EXCEPTION_POINTERS *lpTopLevelExceptionFilter) { ExitProcess(-1); return EXCEPTION_EXECUTE_HANDLER; } BOOL CMyApp::InitInstance() { AfxEnableControlContainer(); SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); throw std::runtime_error("test"); } But this isn't always silent. Sometimes it displays a dialog: --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Runtime Error! Program: C:\Workspace\MyApp\Release\MyApp.exe abnormal program termination --------------------------- OK --------------------------- c++ winapi exception-handling share|improve this question asked Mar 15 '12 at 11:24 sashoalm 18.7k32150322 1 Are you trying in release mode? –Konrad Mar 15 '12 at 11:51 1 possible duplicate of Prevent Modal Dialog on win32 process crash –Raymond Chen Mar 16 '12 at 20:03 add a comment| 2 Answers 2 active oldest votes up vote 9 down vote accepted You want to suppress two things: OS modal dialog notifying user on crash Your own dialogs popped up by runtime The first you do with SetErrorMode requesting SEM_FAILCRITICALERRORS and SEM_NOGPFAULTERRORBOX. The second can be suppressed by altering CRT behavior with _set_abort_behavior. You don't actually need an empty handler with SetUnhandledExceptionFilter - you are not doing anything important there. Proving no handler would crash the process and SetErrorMode (see above) will suppress the unwanted OS notification. Sample code to do it: Se
unless you are a web developer, you just don't care about these messages and don't want them to appear. Turning them off won't hurt the operation of any program, so here is how to turn off https://www.webbie.org.uk/scriptingErrors.htm scripting error messages in Internet Explorer. These messages say things like "Errors on https://www.nngroup.com/articles/user-mistakes/ this webpage might cause it to work incorrectly." The first thing to try is turning off these messages in Internet Explorer: Open Internet Explorer Open the Tools menu (Alt and T) Select the Internet Options item (O key) The Internet Options dialog has many tabs. You need the Advanced tab. Press Control and Tab until error message you get to the Advanced Tab (that's six presses for Internet Explorer 8) You should now be in a list, starting with Accessibility as the first item in Internet Explorer 8. This has the scripting options you want to change. Cursor down to "Disable script debugging (Internet Explorer)" and press Space until it is on. Cursor down to "Disable script debugging (Other)" and press Space until it is on. error messages examples Cursor down to "Display a notification about every script error" and press Space until it is off. Press the Return key to close the Internet Options dialog. You should now have turned off the scripting errors. Not worked? Here are some other things you can try: Update Internet Explorer. You should be on the latest Internet Explorer, it's safer and better. You can get it from Windows Update. Start Internet Explorer, Alt and T for the Tools menu, then cursor down to Windows Update. Change your antivirus program. These cause no end of trouble. Set your Internet Explorer Security settings to Default. You do this again in the Internet Explorer Tools menu, Internet Options, Security tab, and click Default Level. Delete your Internet Explorer temporary files and cookies and history. Internet Options, General tab. This will mean you'll have to re-enter your username and password in places where you've saved it, so make sure you know them all before you try this. Still no good? There are two a Microsoft Support Knowledgebase Articles, How to troubleshoot script errors in Internet Explorer on Windows-based computers from which I've taken some of the above, and Fix runtime errors in Internet Explorer, which have more suggestions and approaches.
& Navigation Analysis Usability Testing UX Strategy Consulting In-House Training Reports Articles About NN/G Overview People Why NN/g? Contact News History Books Search Home Training Consulting Reports Articles About NN/G Browse by Topic and Author Topics E-commerce Intranets Mobile & Tablet User Testing Web Usability See all topics… All Article Topics All Topics (hide) Accessibility Agile Analytics & Metrics Application Design B2B Websites Behavior Patterns Branding Collaboration Content Strategy Corporate Websites Design Patterns Design Process E-commerce Email Eyetracking Heuristic Evaluation Human Computer Interaction Ideation Information Architecture Interaction Design International Users Intranets Management Mobile & Tablet Navigation Non-Profit Websites Personas Persuasive Design Prototyping Psychology and UX Research Methods Search Social Media Strategy User Testing Visual Design Web Usability Writing for the Web Young Users Author Jakob Nielsen Don Norman Bruce "Tog" Tognazzini See all authors… All Authors (hide) Aurora Bedford Raluca Budiu Susan Farrell Therese Fessenden Kim Flaherty Sarah Gibbons Page Laubheimer Angie Li Hoa Loranger Kate Meyer Jakob Nielsen Don Norman Kara Pernice Christian Rohrer Amy Schade Katie Sherwin Bruce "Tog" Tognazzini Kathryn Whitenton Kate Williamson Recent Articles 5 Information Architecture Warning Signs in Your Analytics Reports 28 Tips for Creating Great Qualitative Surveys Design Thinking Builds Strong Teams Augmented Reality: What Does It Mean for UX? Universal Navigation: Connecting Subsites to Main Sites See all articles… Popular Articles Usability 101: Introduction to Usability Top 10 Mistakes in Web Design How Users Read on the Web F-Shaped Pattern For Reading Web Content 10 Usability Heuristics for User Interface Design 10 Best Intranets of 2016 When to Use Which User-Experience Research Methods Response Times: The 3 Important Limits Why You Only Need to Test with 5 Users The Fold Manifesto: Why the Page Fold Still Matters Preventing User Errors: Avoiding Conscious Mistakes by Page Laubheimer on September 7, 2015 Topics: Heuristic Evaluation Interaction Design Summary: Thoughtful design is transparent and easy to understand, provides a preview, and helps users to easily correct their errors. To err is human, and errors happen w