[[DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)]](https://github.com/justinstenning/SharedMemory/blob/d80348e07a2ef50aa000098aefe5ad8d37bca472/SharedMemory/UnsafeNativeMethods.cs#L52C9-L52C85) This prevented me from using CircularBuffer on .NET 9 until I fixed it. I'm not sure if changing it will break older .NET versions though. More info: https://github.com/dotnet/wpf/issues/586