IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC flexible 2008 crashes with HRESULT 0x80040155

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

HRESULT 0x80040155 is the Windows interface-not-registered result raised from the WinCC flexible editor's accessibility layer, so the crash belongs to the engineering workstation, not the project — the same file opens on another programming device. Install the Siemens HF4 corrective update when the fault followed Update 4, or run the engineering system with administrator rights when it followed an Office 2013 upgrade.

On this page
  1. What the result code says
  2. Why the report points at the workstation
  3. Tests that commit the diagnosis
  4. Decision by observed condition
  5. The corrective update for the HF4 trigger
  6. Administrator rights for the Office-upgrade trigger
  7. Questions asked

WinCC flexible 2008 SP3 that opens a project and then closes a few seconds later with a crash report quoting HRESULT 0x80040155 has a workstation fault, not a damaged project: the code is the Windows interface-not-registered result, raised from the editor's screen-accessibility layer, and the same project opens normally on another programming device. Two repairs cover the reported cases. Install the Siemens corrective update for Hotfix 4 when the crash first appeared right after Update 4; run the engineering system with administrator rights when it first appeared after an Office 2013 upgrade. A two-minute mouse test on the project-selection dialog proves the file is innocent before you change anything.

What the result code says #

The report's exception type is System.Runtime.InteropServices.COMException, and its result code follows the Win32 HRESULT layout: bit 31 marks failure, bits 16 to 26 carry the facility, and the low 16 bits are the status code. Decoded on the report's code: (0x80040155 >> 16) & 0x1FFF gives facility 0x004, which is FACILITY_ITF, the interface facility, and the status field is 0x0155 = 1×256 + 5×16 + 5 = 341. Status 341 in that facility is REGDB_E_IIDNOTREG, interface not registered: a component asked the registry to resolve an interface identifier for the editor's process, and the lookup failed.

The neighbouring code 0x80040154, one lower in the status field, means class not registered; when that one appears on the WinCC OPC server rather than in the engineering system, resolving the WinCC OPC server class-not-registered result is the write-up for it. A different HResult again, 0x8004610a, stops a project from opening and has its own fix in the WinCC HResult 0x8004610a project open error. None of these codes describe project contents: the registration they complain about lives in the workstation registry, which is why the fault travels with the machine and not with the file.

Why the report points at the workstation #

Three report lines decide it:

  • Exception source System.Windows.Forms with target site AccessibleObject.HitTest(Int32, Int32): the .NET accessibility hit test that determines which screen element sits under the pointer. It runs on pointer movement and dialog display, project loaded or not.
  • The stack frame Siemens.Simatic.Hmi.Utah.Framework.HmiHelpProvider.ApplicationIdleEvent: the editor performs that hit test during application-idle processing, the pause after the message queue drains. That timing is why the project finishes opening and the editor dies seconds later with no further input.
  • In the Office-associated reports the source is Accessibility, the target site is get_accParent(), and the stack runs through Accessibility.IAccessible.get_accParent(): the failure fires while the editor walks the accessible-control hierarchy, so a single pointer pass across a dialog is enough to trigger it.

Everything on that path — hit testing, the accessible hierarchy, interface lookup — is an operating-system service the editor consumes. Nothing in it reads project data.

Tests that commit the diagnosis #

The reported baseline was Windows 7 with STEP 7 Professional 2010 v5.5 SP3 and WinCC flexible 2008 Advanced SP3 Update 4; the sequence below needs only the editor and a second device.

  1. Archive the project, then open an unchanged copy on a second programming device. If it opens there, the file is good, nothing needs sending away for recovery, and the fault is local to the first machine.
  2. With the standalone editor open, park the pointer in mid-screen where the project-selection dialog appears, open that dialog from the keyboard, and work inside it with keys only. Then move the pointer out of the window. In the reported case the dialog closes the moment the pointer crosses it — with no project loaded at all. That one result retires every project-repair theory.
  3. Create a brand-new operator-panel project, integrated in STEP 7 or standalone. If the editor crashes right after device selection, as soon as the base picture displays, existing contents are provably not needed to trigger the failure.

A positive result on any of the three means stop repairing the project. The routine of deleting temporary files and regenerating everything was reported tried against this fault with no effect — consistent with the code, because regeneration rewrites derived project data and never touches the registry lookup that is failing.

Decision by observed condition #

Observed condition Diagnosis Action
Crash first appeared right after installing Update 4; the report's product line reads WinCC flexible 2008 SP3 Advanced; K 1.04 Hotfix 4; K 1.4.0 HF 4 (1.04.02) HF4 state with a published correction Install the Siemens corrective update for WinCC flexible 2008 SP3
Crash first appeared directly after an Office 2013 upgrade; report source Accessibility, target get_accParent() Interface registration disturbed by the upgrade; execution context decides Start Center reset, then run the engineering system with administrator rights
Fault present before that update was ever installed; crashes even on a new operator-panel project Same registration fault, different trigger Same second branch: reset, then administrator rights

The code is identical in all three rows, so the timeline, not the HRESULT, picks the branch. A downgrade below Update 4 serves none of them: the first row has a targeted patch, and the other two never depended on that update.

The corrective update for the HF4 trigger #

Siemens published the correction as Industry Online Support entry 58860033, Update for WinCC flexible 2008 Service Pack 3. Take the package from Siemens support or one of its distributors, matched to the installed product and build; on a legacy engineering workstation, nothing else belongs on it. Install it on the engineering system, which is where the crash occurs. In the reported case the editor behaved normally immediately after the patch was installed.

Record the product-version line from the last crash report before updating, and compare it with the version information the engineering system shows afterwards. The hotfix identifiers are how you confirm the corrected state, because a successful fix leaves no new crash report to read.

Administrator rights for the Office-upgrade trigger #

When the timeline begins with an Office 2013 upgrade, the HF4 correction is not your fix: in the reported case the crash survived later updates and a reinstallation. Work the branch in order.

First the documented reset: right-click the Start Center and select Reset SIMATIC WinCC flexible from the menu that appears, the procedure Siemens documents under entry 36645252 for returning the engineering system to the original state of the last installation. Expect little from it — in the reported Office-upgrade case it changed nothing.

Then run the engineering system with administrator rights: close it, right-click its icon, and start it elevated. That was the reported remedy; the same actions that crashed the editor ran normally with elevation. The reports do not establish why the Office upgrade disturbed the lookup or why elevation repairs it, and the decision does not depend on that, because the before-and-after test is one launch away. Until that workstation is rebuilt, launching the editor elevated is the working configuration — and keep the elevation on the engineering workstation only; it is no reason to hand administrative logins to runtime PCs or the machine network.

Questions asked

Does the crash damage my project file?

No. The editor closes without saving, so edits from the last few minutes can be lost, but the file itself stays readable — the reported proof is the same project opening normally on a second programming device. Archive the project before any repair work and reopen it from that archive once the workstation is fixed.

Can keyboard-only operation hold me over until the fix?

Only long enough to save your work. Opening dialogs from the keyboard skips the pointer hit test that triggers the crash, but the interface failure stays in place: the next pointer pass across an editor dialog closes it again, and an accessibility client such as a screen reader calls the same failing interface. Finish, save, close, then apply the fix.

What do the two version lines in the crash report identify?

The product line identifies the engineering system's corrected state, WinCC flexible 2008 SP3 Advanced with K 1.04 Hotfix 4, also written 1.04.02, and it is what you compare before and after installing the corrective update. The line above it names the workstation operating system, in the reported cases Professional Service Pack 1 with build 6.1.7601.65536, which matters because the failing interface lookup happens in that machine's registry.

Do the runtime panels need the corrective update too?

Yes, when they run the same WinCC flexible 2008 SP3 generation. The Siemens entry for the Service Pack 3 update states that it must be installed on the engineering system as well as on the runtime systems, so plan the panel update into the same maintenance window even though the crash itself occurs only in the engineering system.

Keep reading

  • Troubleshooting

    Why the 840D sl HMI package will not install on Windows 7 x64

    The SINUMERIK HMI configuration package for WinCC flexible 2008 fails on Windows 7 x64 because setup's operating-system check finds a 64-bit host and the package's documented engineering environment is 32-bit Windows XP. Compatibility mode and administrator rights cannot pass that gate. The supported fix is a licensed 32-bit XP station, usually a virtual machine, with base WinCC flexible 2008 installed first.

    HMI and touchscreens

  • Troubleshooting

    Why STEP 7 symbols are missing in WinCC Flexible tag lists

    New DB symbols stay out of WinCC Flexible's tag selection because the integrated project serves stale stored symbol data; rebuild, reconnect and compile do not refresh it. Save the STEP 7 project with File > Save as and the With reorganization (slow) option, open the renamed copy, and recompile the HMI configuration before any download.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Flexible 2008 Closes a Project After an Interrupted Save

    A save killed in Task Manager leaves the project file internally inconsistent, so WinCC Flexible 2008 reports the unloadable data and closes the project when you acknowledge the error. A control project on the same PC and the failed copy on a second PC separate file damage from an installation fault. Recover from the newest pre-hang backup and accept it only after a save-close-open cycle passes.

    HMI and touchscreens