You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also note that cleanups.Add(()=> NativeMemory.AlignedFree({address})); will allocate closure.
Agree. I would consider handling this in a stack allocated struct that implements IDisposable or a ref struct with a Dispose() method. Note that Roslyn allows a ref struct with a Dispose(), not implementing IDisposable, to be used in a using statement.
Originally posted by @AaronRobinsonMSFT in #1012
The text was updated successfully, but these errors were encountered: