On Wed Nov 20 14:14:17 2024 +0000, Nikolay Sivov wrote:
There is a sample here for a source implementation [1]. What they seem to suggest instead is to release stream references that source keeps, while preserving source references in the streams (I don't know why). Maybe it makes sense to follow that pattern instead. [1] https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7S...
The tests seem to show that Windows 10 is different. Preserving source references in the streams would mean that keeping a stream after releasing the source prevents source destruction until the stream is released, but in the tests the source is destroyed while the stream exists. Perhaps they've changed the way things are done since Win7.