Why EXCEL.EXE Processes Remain After C# Excel COM Automation — Reference Release Patterns and the Replacement Decision (archived 2026-07-27)

A practical look at why EXCEL.EXE processes remain running after automating Excel from C# via Microsoft.Office.Interop.Excel, explained through COM reference counting and the RCW mechanism. Covers the two-dot rule trap, the Marshal.ReleaseComObject vs. GC release patterns, the last-resort technique of identifying the PID from the window handle, and when to replace COM interop with Open XML SDK / ClosedXML. Archived version of https://comcomponent.com/en/blog/excel-com-interop-process-remains/, as published on 2026-07-27. The live article is maintained and may change after this date. First published 2026-07-03.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-07-27
DOI
https://doi.org/10.5281/zenodo.21614718
Primary Topic
Data Analysis with R
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Why EXCEL.EXE Processes Remain After C# Excel COM Automation — Reference Release Patterns and the Replacement Decision (archived 2026-07-27)

Go Komura
Zenodo (CERN European Organization for Nuclear Research)
Data Analysis with R
article

Why EXCEL.EXE Processes Remain After C# Excel COM Automation — Reference Release Patterns and the Replacement Decision (archived 2026-07-27)

Go Komura
article en

Abstract

A practical look at why EXCEL.EXE processes remain running after automating Excel from C# via Microsoft.Office.Interop.Excel, explained through COM reference counting and the RCW mechanism. Covers the two-dot rule trap, the Marshal.ReleaseComObject vs. GC release patterns, the last-resort technique of identifying the PID from the window handle, and when to replace COM interop with Open XML SDK / ClosedXML. Archived version of https://comcomponent.com/en/blog/excel-com-interop-process-remains/, as published on 2026-07-27. The live article is maintained and may change after this date. First published 2026-07-03.

Zenodo (CERN European Organization for Nuclear Research)
Fujikura (United States) (US)
Peace, Justice and strong institutions
Openalex Percentile: Top 6%
Data Analysis with R
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.