iinitializespy

Tag

Cards List
#iinitializespy

Why didn’t we use Co­Register­Initialize­Spy to clean up the unmarshalable delegate?

The Old New Thing (Raymond Chen) ↗ · 2026-10-22 Cached

Raymond Chen explains why the IInitializeSpy interface (CoRegisterInitializeSpy) is unsuitable for cleaning up unmarshalable delegates at COM apartment shutdown, citing thread-vs-apartment scoping issues and unpredictable revocation behavior.

0 favorites 0 likes
← Back to home

Submit Feedback