Article

Why did it seem that the entries in the CoreApplication Properties expired when the source application shut down?

The Old New Thing ·The Old New Thing ·Published 2026-11-25 ·5 min read

This article discusses the behavior of entries in the CoreApplication.Properties and clarifies misconceptions about their expiration related to the lifetime of the apartment that added them. It explains the role of agile wrappers in COM object management.

From the article

Last time, we confirmed that entries in the Core­Application. Properties are not tied to the lifetime of the apartment that added them . But Luca claimed that they did. Where did this claim come from?

While it’s true that the entries don’t expire, the objects might expire.

If the object you put into the Core­Application. Properties are not agile, then they must be used in the apartment that created them, and therefore when that apartment shuts down, the objects become unusable.


Share this resource


Discovered 2026-11-26 Source The Old New Thing Archive 2026-11 →