RecyclableMemoryStreamManager.Events.MemoryStreamDoubleDispose method

December 6, 2023 · View on GitHub

Logged when the stream is disposed for the second time.

public void MemoryStreamDoubleDispose(Guid guid, string? tag, string? allocationStack, 
    string? disposeStack1, string? disposeStack2)
parameterdescription
guidA unique ID for this stream.
tagA temporary ID for this stream, usually indicates current usage.
allocationStackCall stack of initial allocation.
disposeStack1Call stack of the first dispose.
disposeStack2Call stack of the second dispose.

Remarks

Note: Stacks will only be populated if RecyclableMemoryStreamManager.GenerateCallStacks is true.

See Also