ANAVEM
Languagefr
Windows Event Viewer and Resource Monitor displaying application hang diagnostic information on dual monitors
Event ID 1002ErrorApplication ErrorWindows

Windows Event ID 1002 – Application Error: Application Hang Detection

Event ID 1002 indicates an application has stopped responding and Windows has detected a hang condition. This critical event helps identify problematic applications affecting system performance.

Emanuel DE ALMEIDAEmanuel DE ALMEIDA
17 March 202612 min read 0
Event ID 1002Application Error 5 methods 12 min
Event Reference

What This Event Means

Windows Event ID 1002 represents a critical application stability event that occurs when the operating system's hang detection mechanism identifies an unresponsive application. The Windows Hang Reporting feature continuously monitors application threads, particularly those responsible for user interface updates and system message processing.

When an application's main thread fails to process messages within the designated timeout threshold, Windows generates this event and may display the familiar "Program Not Responding" dialog to users. The event contains comprehensive diagnostic data including the faulting application's executable name, process identifier, hang start time, and duration.

Modern Windows versions employ sophisticated hang detection algorithms that differentiate between legitimate long-running operations and actual hang conditions. The 2026 Windows updates have refined these mechanisms to better handle applications using modern asynchronous programming patterns, reducing false positive hang detections while maintaining accurate reporting of genuine application failures.

The event data proves invaluable for system administrators managing enterprise environments, as it enables proactive identification of problematic applications before they significantly impact user productivity. Correlation analysis of Event ID 1002 occurrences can reveal patterns related to specific software versions, system configurations, or resource constraints that contribute to application instability.

Applies to

Windows 10Windows 11Windows Server 2019/2022/2025
Analysis

Possible Causes

  • Application deadlocks where threads wait indefinitely for resources
  • Infinite loops in application code preventing message processing
  • Excessive memory usage causing virtual memory thrashing
  • Network timeouts in applications waiting for remote resources
  • Disk I/O bottlenecks preventing file operations from completing
  • Third-party driver conflicts interfering with application execution
  • Insufficient system resources (CPU, memory) under heavy load
  • Antivirus software blocking or scanning application processes
  • Windows registry corruption affecting application initialization
  • Hardware issues such as failing RAM or storage devices
Resolution Methods

Troubleshooting Steps

01

Analyze Event Details in Event Viewer

Start by examining the specific details of the hang event to identify the problematic application and gather initial diagnostic information.

  1. Open Event Viewer by pressing Win + R, typing eventvwr.msc, and pressing Enter
  2. Navigate to Windows LogsApplication
  3. Filter for Event ID 1002 by right-clicking the Application log and selecting Filter Current Log
  4. Enter 1002 in the Event IDs field and click OK
  5. Double-click the most recent Event ID 1002 entry to view detailed information
  6. Note the application name, process ID, and hang duration from the event description
  7. Check the Details tab for additional technical information including stack traces

Use PowerShell to query multiple hang events for pattern analysis:

Get-WinEvent -FilterHashtable @{LogName='Application'; Id=1002} -MaxEvents 50 | Select-Object TimeCreated, Id, LevelDisplayName, Message | Format-Table -Wrap
Pro tip: Look for recurring application names or specific time patterns that might indicate scheduled processes or user behavior correlations.
02

Monitor Application Performance with Resource Monitor

Use built-in Windows tools to monitor the problematic application's resource usage and identify performance bottlenecks causing hang conditions.

  1. Launch Resource Monitor by typing resmon.exe in the Start menu
  2. Click the CPU tab and locate the hanging application in the processes list
  3. Check the Average CPU column for unusually high or zero CPU usage patterns
  4. Switch to the Memory tab and examine the application's memory consumption
  5. Review the Disk tab for excessive I/O operations that might cause blocking
  6. Monitor the Network tab for applications waiting on network responses

Use Performance Monitor to create custom counters for the specific application:

# Create a custom performance counter set for application monitoring
$counterSet = @(
    "\Process(ApplicationName)\% Processor Time",
    "\Process(ApplicationName)\Working Set",
    "\Process(ApplicationName)\Handle Count",
    "\Process(ApplicationName)\Thread Count"
)
Get-Counter -Counter $counterSet -SampleInterval 5 -MaxSamples 60
Warning: High handle counts or excessive thread creation can indicate resource leaks that lead to application hangs.
03

Configure Windows Error Reporting for Enhanced Diagnostics

Enable detailed crash dump collection and configure WER settings to capture comprehensive diagnostic information for hang analysis.

  1. Open Registry Editor as administrator by typing regedit in the Start menu
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting
  3. Create a new DWORD value named DontShowUI and set it to 1 to prevent user prompts
  4. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
  5. Create a new key with the exact name of the problematic executable (e.g., notepad.exe)
  6. Within this key, create the following DWORD values:
    • DumpType = 2 (full dump)
    • DumpCount = 5 (keep 5 dumps)
    • DumpFolder = C:\CrashDumps (REG_EXPAND_SZ)

Use PowerShell to configure WER settings programmatically:

# Enable application-specific crash dump collection
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\YourApp.exe"
New-Item -Path $regPath -Force
Set-ItemProperty -Path $regPath -Name "DumpType" -Value 2 -Type DWord
Set-ItemProperty -Path $regPath -Name "DumpCount" -Value 5 -Type DWord
Set-ItemProperty -Path $regPath -Name "DumpFolder" -Value "C:\CrashDumps" -Type ExpandString

Create the dump folder and set appropriate permissions:

New-Item -Path "C:\CrashDumps" -ItemType Directory -Force
icacls "C:\CrashDumps" /grant "Everyone:(OI)(CI)F"
04

Analyze Application Dependencies and Compatibility

Investigate application dependencies, compatibility settings, and potential conflicts that may cause hang conditions in modern Windows environments.

  1. Use Dependency Walker or PowerShell to analyze application dependencies:
# Get loaded modules for a running process
$processName = "YourApplication"
Get-Process -Name $processName | Select-Object -ExpandProperty Modules | Select-Object ModuleName, FileName, FileVersionInfo
  1. Check application compatibility settings by right-clicking the executable and selecting PropertiesCompatibility
  2. Test with different compatibility modes (Windows 8, Windows 10) if the application is older
  3. Disable visual themes and desktop composition temporarily to isolate graphics-related issues
  4. Run the application as administrator to eliminate permission-related hang causes

Use Application Compatibility Toolkit (ACT) for enterprise environments:

# Query application compatibility database
sdbinst -q -n "YourApplication.exe"

# Check for known compatibility fixes
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" | Where-Object { $_.PSChildName -like "*YourApplication*" }
Pro tip: Windows 11 2026 includes enhanced compatibility telemetry that can automatically suggest fixes for known application hang scenarios.
05

Advanced Hang Analysis with Process Monitor and Debug Tools

Perform deep diagnostic analysis using advanced tools to identify the root cause of application hangs through system call tracing and memory analysis.

  1. Download and run Process Monitor (ProcMon) from Microsoft Sysinternals
  2. Set filters to monitor only the problematic application:
    • Process and Thread Activity: Include process name
    • File System Activity: Include process name
    • Registry Activity: Include process name
  3. Reproduce the hang condition while ProcMon captures system activity
  4. Analyze the last operations before the hang occurs, looking for:
    • Failed file or registry operations
    • Infinite loops in system calls
    • Blocked I/O operations

Use Windows Performance Toolkit (WPT) for advanced analysis:

# Start ETW tracing for application hang analysis
wpr -start GeneralProfile -start CPU -start FileIO -start Registry

# Reproduce the hang condition, then stop tracing
wpr -stop C:\Traces\AppHang.etl

# Analyze with Windows Performance Analyzer
wpa C:\Traces\AppHang.etl

Create a custom PowerShell script for automated hang detection:

# Monitor for application hangs and collect diagnostic data
function Monitor-ApplicationHang {
    param([string]$ProcessName, [int]$TimeoutSeconds = 30)
    
    while ($true) {
        $process = Get-Process -Name $ProcessName -ErrorAction SilentlyContinue
        if ($process) {
            $responding = $process.Responding
            if (-not $responding) {
                Write-Host "Hang detected for $ProcessName at $(Get-Date)"
                # Collect memory dump
                $dumpPath = "C:\Dumps\$ProcessName-$(Get-Date -Format 'yyyyMMdd-HHmmss').dmp"
                Start-Process -FilePath "tasklist" -ArgumentList "/svc /fi `"PID eq $($process.Id)`"" -Wait
            }
        }
        Start-Sleep -Seconds $TimeoutSeconds
    }
}
Warning: Advanced debugging tools require significant system resources and should be used carefully in production environments.

Overview

Event ID 1002 fires when Windows detects that an application has become unresponsive and enters a hang state. This event is generated by the Windows Error Reporting (WER) service when an application fails to respond to system messages within the configured timeout period, typically 5 seconds for user interface threads.

The event captures critical diagnostic information including the application name, process ID, hang duration, and stack trace data. Windows 11 2026 updates have enhanced hang detection algorithms to reduce false positives and provide more accurate reporting for modern applications using asynchronous patterns.

This event appears in the Application log and serves as a key indicator for application stability issues. System administrators use Event ID 1002 to identify problematic software, track application performance trends, and correlate hang events with system resource constraints. The event data includes executable paths, module information, and timing details essential for troubleshooting application reliability problems.

Frequently Asked Questions

What does Windows Event ID 1002 indicate about my system?+
Event ID 1002 indicates that an application on your system has become unresponsive and Windows has detected a hang condition. This event is generated when an application's main thread fails to process system messages within the configured timeout period, typically 5 seconds. The event helps identify problematic applications that may be affecting system performance and user productivity. It's a critical diagnostic tool for system administrators to track application stability issues and correlate hang events with system resource constraints or configuration problems.
How can I prevent applications from generating Event ID 1002 hang errors?+
To prevent application hangs, ensure your system has adequate resources (RAM, CPU, disk space) and keep applications updated to their latest versions. Configure appropriate virtual memory settings, disable unnecessary startup programs, and run regular system maintenance including disk cleanup and defragmentation. For enterprise environments, implement application compatibility testing before deploying new software versions. Monitor system performance regularly using built-in tools like Resource Monitor and Performance Monitor to identify resource bottlenecks before they cause application hangs. Additionally, ensure antivirus software is configured to exclude application directories from real-time scanning if performance issues persist.
Can Event ID 1002 cause system crashes or data loss?+
Event ID 1002 itself represents an application hang and typically doesn't cause system crashes or direct data loss. However, hung applications may prevent users from saving work or completing important tasks, potentially leading to indirect data loss. In severe cases, multiple application hangs or hangs in critical system processes could impact overall system stability. The event serves as an early warning system to identify problematic applications before they cause more serious issues. To minimize risks, configure automatic saving in applications where possible, implement regular backup procedures, and address recurring hang events promptly through troubleshooting and application updates.
Why do I see Event ID 1002 more frequently after Windows updates?+
Increased Event ID 1002 occurrences after Windows updates often result from compatibility issues between updated system components and existing applications. Windows updates may change system APIs, security policies, or resource management behaviors that affect how applications interact with the operating system. Driver updates included in Windows updates can also impact application performance. Additionally, Windows 11 2026 updates have enhanced hang detection algorithms that may identify previously undetected hang conditions, leading to more accurate but seemingly increased event reporting. To resolve this, check for application updates, verify driver compatibility, and consider running applications in compatibility mode if they're older versions not optimized for the latest Windows release.
How do I analyze Event ID 1002 patterns to identify root causes?+
To analyze Event ID 1002 patterns effectively, use PowerShell to extract and correlate multiple events over time. Look for recurring application names, specific time patterns (such as daily occurrences at the same time), or correlations with system events like high CPU usage or memory pressure. Export event data to CSV format for analysis in Excel or other tools to identify trends. Cross-reference hang events with system performance counters, installed software changes, and user activity patterns. Use Windows Performance Toolkit for advanced correlation analysis, and consider implementing automated monitoring scripts that alert when hang frequencies exceed normal thresholds. Pattern analysis helps distinguish between isolated incidents and systemic issues requiring immediate attention.
Documentation

References (2)

Emanuel DE ALMEIDA
Written by

Emanuel DE ALMEIDA

Senior IT Journalist & Cloud Architect

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...