What happens when you put a non-agile object in the CoreApplication Properties?

· Raymond Chen · Nov. 26, 2026, 11:31 p.m.
Summary
This blog post explains the behavior of non-agile and agile objects in the CoreApplication.Properties, focusing on how non-agile objects expire when their host apartment shuts down. It discusses the internal function RoGetAgileReference and demonstrates the behavior through code illustrating what happens when trying to access a non-agile object after its destruction.