Questions tagged [disposing]
16 questions
-1
votes
2 answers
How do I force collection of a MemoryStream's underlying buffer?
I'm working with a memory stream and I'm running into some issues with some out of memory exceptions. The method causing the issue is below.
public override T Deserialize(byte[] source)
{
using (var stream = new MemoryStream(source))
{
…

elucid8
- 1,412
- 4
- 19
- 40