© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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
BlazeBin - wchbuamcrxfn
A tool for sharing your source code with the world
!
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ Question regarding Pipe[Reader/Writer].Complete(Exception) (System.IO.Pipelines)
C
C# / help
3y ago
System.IO.Pipelines.ReadResult
C
C# / help
3y ago
✅ System.IO.FileNotFoundException
C
C# / help
2y ago
System.IO.FileLoadException
C
C# / help
3y ago