Sub topic 12
Application crashes and unresponsive programs
This chapter assumes you can open Task Manager and Event Viewer, run commands from an elevated Command Prompt or PowerShell, and tell a process from a service. You should also know the CompTIA troubleshooting steps from the first chapter. Here they are applied to one symptom: a program that closes without warning, freezes, or shows "Not responding".
Crash, hang, or something else
Start by naming the symptom exactly. The word "crash" covers several different faults, and each one points to a different cause.
| Symptom | What you see | Likely direction |
|---|---|---|
| Crash | The window disappears, or Windows reports that the program stopped working | Faulting module, bad update, corrupt files, missing runtime |
| Hang | The window stays but turns white or gray and the title bar says "Not responding" | Waiting on disk, network or another process |
| Slow, not hung | The program responds after a long delay | Resource pressure, antivirus scanning, a large profile or data file |
| Fails at launch | An error appears before the window opens | Missing dependency, permissions, compatibility |
| Whole system freezes | Nothing responds, including the mouse | Not an application fault. See the stop error and driver chapters |
A program that is "Not responding" is not necessarily dead. Windows marks it that way when the program's main window has not processed messages for a few seconds. A program busy with a long task, such as a large file open over a slow network share, can recover on its own. Waiting a minute is a legitimate first test.
Work through the methodology
- Identify the problem. Ask which application, which user, and when it began. Ask what changed: a Windows update, a new driver, a new plug-in, a software install. Check whether it happens every time or only with certain files. Back up the user's data before you change anything.
- Establish a theory. Start with the simple, probable causes. If only one program fails, suspect that program. If several fail, suspect something shared, such as a runtime, a driver or the system files.
- Test the theory. Reproduce the failure. Try a second user account on the same computer. A program that works for another user points to the first user's profile or settings. A program that fails for everyone points to the installation or the system.
- Plan and implement. Choose the least destructive fix first. Closing and reopening costs nothing. Reinstalling can lose settings.
- Verify that the program works, then document what you found and what fixed it.
Gather evidence
End the frozen process
Open Task Manager with Ctrl+Shift+Esc. Frozen programs show a status of "Not responding" on the Processes tab. Select the process and choose End task. Use the Details tab if the process has no friendly name. This discards unsaved work, so tell the user first when you can.
If the process will not end, taskkill from an elevated prompt can force it:
taskkill /IM notepad.exe /FThe /F switch forces termination. Without it, Windows asks the program to close politely, which a hung program ignores.
Watch the resources
While the program runs, look at the Performance tab. A program that slows down as memory climbs toward 100 percent, or whose disk usage stays at 100 percent, is starved for resources. Resource Monitor's Memory tab shows commit charge and hard faults. A process whose memory grows steadily over hours and never drops is leaking memory. Restarting the program is a temporary fix. The lasting fix is an update from the vendor.
Read the Application log
Event Viewer records crashes in the Application log under Windows Logs. Look for entries with the source Application Error (event ID 1000) and Application Hang (event ID 1002). The general details name the faulting application, the faulting module and the exception code. The module name is the most useful field.
| Faulting module | What it suggests |
|---|---|
| The application's own `.exe` | A defect in the program, or corrupt program files |
| A `.dll` in the program folder | Damaged or mismatched application files, or a bad plug-in |
| `ntdll.dll`, `KERNELBASE.dll` | Generic, so look for a deeper cause such as memory or system file damage |
| A graphics driver DLL (for example `nvlddmkm` or `atidxx`) | Display driver problem |
| An antivirus or hooking DLL | Security software conflict |
You can pull the same data from PowerShell. This lists the ten most recent Application log errors from the past day:
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; Level = 2; StartTime = (Get-Date).AddDays(-1) } | Select-Object -First 10 TimeCreated, ProviderName, Id, MessageMatch the TimeCreated value to the time the user reports. That ties one specific crash to one specific faulting module.
Fix by cause, least destructive first
- Restart the program, then the computer. This clears stuck handles and memory leaks.
- Install updates. Update the application and Windows. Many crashes are known bugs with patches. If the crashes began right after an update, uninstall that update or use System Restore to test it.
- Run as administrator. A program that fails to write to a protected folder can crash on a standard account. Test with Run as administrator before changing folder permissions.
- Disable add-ins and plug-ins. Browsers and Office programs often crash because of an extension. Start them in safe mode (for Office, hold Ctrl while launching) or disable add-ins one at a time.
- Check for conflicts. Temporarily disable third-party antivirus, or add an exception for the program. Use a clean boot to find a conflicting startup program or service, as shown in the services chapter.
- Repair the installation. Use Settings > Apps > Installed apps, choose the program, and select Modify or Advanced options > Repair. Repair keeps user data. Reset removes app data. Uninstall and reinstall is the last resort.
- Repair Windows. If several programs fail or the faulting module is a system DLL, repair system files:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannowDISM repairs the component store first. The second sfc run then restores protected files from the repaired store.
- Check memory and disk. Random crashes across many programs can mean failing RAM or a failing drive. Run Windows Memory Diagnostic and
chkdsk C: /f /r. - Scan for malware. Crashes plus pop-ups, redirected browsers, or programs that close as soon as they start can indicate an infection. A later chapter covers this overlap.
Missing runtimes and common error messages
Some programs fail at launch because a shared component is missing. A message about VCRUNTIME140.dll or MSVCP140.dll means the Microsoft Visual C++ Redistributable is missing or damaged. Install or repair the matching version, and match the 32-bit or 64-bit build the program needs. A message about .NET means the required .NET version is absent. Turn on or install it from Windows Features or the vendor's page. Do not download single DLL files from random websites. That is a common route for malware and the exam treats it as the wrong answer.
Edge cases to remember
- One user only. If a second account works, rename or reset the first user's application settings, or create a new profile. Reinstalling the program will not help.
- After a Windows feature update. An older program may be incompatible. Try compatibility mode, covered in the next chapter.
- At the same time every day. Look for a scheduled task, backup or antivirus scan competing for resources.
- Crash on opening one file. The file is corrupt, not the program. Try another file, or open the file on another computer.
- Crash dumps. Windows can write dump files that a vendor can analyze. Collect them if support asks, but you do not need to read them for the exam.
- Application hangs on a network resource. Test the connection and the share before you blame the program.
Exam reasoning
The exam gives a short scenario and asks for the best next step. Prefer the answer that gathers evidence or applies the least destructive fix. If one user is affected, look at the profile before you reinstall. If many programs fail, look at the system. Never choose reformatting the drive when a repair step is available.
Exercise
A user says Outlook closes a few seconds after it opens. Other users on the same computer can use Outlook normally. The Application log shows an Application Error event naming an add-in DLL in the user's profile. What is the best next step?
Show answer
Start Outlook in safe mode or disable the add-in, because the evidence points to a faulty add-in in that user's profile. Since other users are unaffected, reinstalling Outlook or running sfc is not the first choice.
Exercise
A program shows "Not responding". List the order you would use: end the task, wait, check the Application log. Explain why.
Show answer
Wait first, because the program may be busy and recover. If it stays frozen, end the task from Task Manager, using taskkill /F if needed. Then check the Application log (event IDs 1000 and 1002) to find the faulting module so you can prevent a repeat.
Exercise
Several unrelated programs crash at random, and the faulting module is often ntdll.dll. Name two actions that fit this pattern.
Show answer
Run sfc /scannow with DISM /Online /Cleanup-Image /RestoreHealth to repair system files, and test RAM and the disk with Windows Memory Diagnostic and chkdsk. A failing hardware component or damaged system files can affect many programs at once.