© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
20 replies
Anton

❔ System.IO.Pipelines cannot complete the reader

Hey. I'm having
reader.CompleteAsync
reader.CompleteAsync
throw because it tries to return an empty buffer to the array pool.
All of the reading goes successfully, but when I try to
CompleteAsync
CompleteAsync
the reader, it ends up in that code with an invalid state for one of the segments, apparently
Does anyone have any idea what could be up?

Approximate code is here (it doesn't contain the data structures, just shows the most important functions).

https://paste.mod.gg/wchbuamcrxfn/0
image.png
BlazeBin - wchbuamcrxfn
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Question regarding Pipe[Reader/Writer].Complete(Exception) (System.IO.Pipelines)
C#CC# / help
3y ago
System.IO.Pipelines.ReadResult
C#CC# / help
3y ago
✅ System.IO.FileNotFoundException
C#CC# / help
2y ago
System.IO.FileLoadException
C#CC# / help
3y ago