windows server 2019 and 2022 update crashing Codesys V2.3 program

Kelly Gaynor 0 Reputation points
2026-11-23T16:55:17.26+00:00

Faulting application name: Codesys.exe, version: 2.3.9.30, time stamp: 0x4e327cc1

Faulting module name: Codesys.exe, version: 2.3.9.30, time stamp: 0x4e327cc1

Exception code: 0xc000041d

Fault offset: 0x0087fee2

Faulting process id: 0x206c

Faulting application start time: 0x01dd7b6a93b02a47

Faulting application path: C:\Program Files (x86)\WAGO Software\CoDeSys V2.3\Codesys.exe

Faulting module path: C:\Program Files (x86)\WAGO Software\CoDeSys V2.3\Codesys.exe

Report Id: e5ff09e1-f562-4925-80e4-53224967ca63

Faulting package full name:

Faulting package-relative application ID:

Windows for business | Windows Server | Performance | Application technologies and compatibility
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-23T16:56:27.0066667+00:00

    Configure Windows Error Reporting to capture a full Codesys.exe dump, because the Event ID 1000 entry identifies a user-mode CODESYS crash but does not establish which Windows update or application component caused it.

    1. Capture the CODESYS crash dump

    CODESYS V2.3 is a 32-bit application under Program Files (x86), so configure both standard and WOW64 Windows Error Reporting locations. Microsoft recommends full process dumps for repeatedly crashing third-party applications and then supplying those dumps to the application vendor.^1^

    Run this from an elevated Command Prompt:

    mkdir C:\WER
    reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe" /v DumpFolder /t REG_EXPAND_SZ /d "C:\WER" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe" /v DumpCount /t REG_DWORD /d 10 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe" /v DumpType /t REG_DWORD /d 2 /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe" /v DumpFolder /t REG_EXPAND_SZ /d "C:\WER" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe" /v DumpCount /t REG_DWORD /d 10 /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe" /v DumpType /t REG_DWORD /d 2 /f
    

    Reproduce the crash and check C:\WER for a .dmp file. Exception 0xc000041d indicates an unhandled exception during a user callback; it does not, by itself, identify the defective component.^2^

    Analyze the dump with WinDbg and !analyze -v, or send it to WAGO/CODESYS support. Because Codesys.exe is both the faulting application and module, Microsoft’s documented escalation path is the third-party vendor rather than Microsoft application support.^1^

    2. Correlate it with an exact update

    Do not assume every recently installed KB is responsible. Record the last updates on one affected server:

    Get-HotFix |
        Sort-Object InstalledOn -Descending |
        Select-Object -First 15 HotFixID, Description, InstalledOn
    

    Get-HotFix is the supported PowerShell method for listing installed hotfixes.^3^

    Also inspect:

    1. Event Viewer → Windows Logs → Application for CODESYS events at the crash time.
    2. Applications and Services Logs → Microsoft → Windows → WindowsUpdateClient → Operational.
    3. Compare the KB installation time with the first CODESYS failure on both Server 2019 and 2022.

    Microsoft’s Server update guidance specifically recommends correlating Application, System, and WindowsUpdateClient events around the update time.^4^

    3. Test rollback only after establishing correlation

    If the same KB immediately precedes the failure on multiple machines:

    1. Back up the CODESYS project and communication configuration.
    2. Take a VM checkpoint or system backup.
    3. On one nonproduction server, open Control Panel → Programs and Features → View installed updates.
    4. Select the correlated cumulative update and choose Uninstall.
    5. Restart, then repeat the exact operation that crashed.
    6. If CODESYS works again, pause that KB through your normal WSUS/update-management process while escalating with the dump, KB number, and before/after test results.

    Rollback is a diagnostic and temporary mitigation, not proof of a general Server 2019/2022 defect. No supplied Microsoft release-health entry documents this exact combination of CODESYS [IP Address], Server 2019/2022, and 0xc000041d.

    Conditional CODESYS-specific workaround

    If CODESYS closes specifically when downloading to the PLC, a closely matching CODESYS V2.3 report recovered by performing Reset (Original) and then restoring the communication settings and baud rate.^5^

    Use this only if that is your crash point. Reset (Original) can remove the controller application/configuration, so preserve the project and PLC parameters and schedule downtime first. If CODESYS instead crashes at startup or while editing, this workaround is not established for that symptom; provide WAGO with the dump and the exact triggering KB.

    After investigation, remove the two LocalDumps\Codesys.exe registry keys so full dumps do not continue consuming disk space.^1^


    References

    1. The application or service crashing behavior troubleshooting guidance
    2. [Task Scheduler] Ask for details about the return code 0XC000041D - Microsoft Q&A
    3. Gets the most recent hotfix installed on the local computer by retrieving all hotfixes, sorting them by installation date, and selecting the latest one.
    4. Windows Server update troubleshooting guidance
    5. CODESYS Forge - CODESYS Forge / Talk / Codesys V2.3 🇬🇧: Codesys closes instantly after I try to download to PLC
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Domic Vo 37,655 Reputation points Independent Advisor
    2026-11-23T17:27:09.0633333+00:00

    Hello,

    The exception 0xc000041d (STATUS_FATAL_USER_CALLBACK_EXCEPTION) indicates an unhandled exception during a user-mode callback, but it does not prove that a Windows update is the root cause. Since Codesys.exe is identified as both the faulting application and module, I recommend capturing a full crash dump before changing or removing any Windows updates. You can enable Windows Error Reporting (WER) by creating C:\WER and configuring HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Codesys.exe with DumpFolder = C:\WER, DumpCount = 10, and DumpType = 2 (full dump); because this is a 32-bit application, also configure the equivalent Wow6432Node registry location. Reproduce the crash, then analyze the resulting .dmp file using WinDbg (!analyze -v) or provide it to WAGO/CODESYS technical support for investigation. Meanwhile, compare the installation dates of recent updates using Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 15 HotFixID, InstalledOn and correlate them with the crash timestamps in Event Viewer under Windows Logs > Application and Applications and Services Logs > Microsoft > Windows > WindowsUpdateClient > Operational; only consider uninstalling a specific update after confirming a consistent relationship, preferably testing on a non-production server first. Could you confirm the exact KB update installed immediately before the crashes, whether CoDeSys crashes at startup or only when opening a project or communicating with a PLC, and whether the same behavior occurs on both Windows Server 2019 and 2022?

    If my answer is useful for you, please hit Accept the answer to support me.

    Thank you

    Domic Vo.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.