Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7662881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:54:50+00:00 2026-05-31T13:54:50+00:00

Like GuyFawkes , I would like to use MemoryStream to store a large amount

  • 0

Like GuyFawkes, I would like to use MemoryStream to store a large amount of data, but keep encountering the ‘out of memory’ exceptions.
TomTom’s answer is what I would like to do – use an implementation that does not require a contiguous block – but I’m wondering if there is already a free implementation available, to save me writing one myself?

Does anyone know of a good, free re-implementation of MemoryStream that can work with large streams?

EDIT:

The MemoryMappedFile solution is very interesting and I will be remembering it for other projects, however as Henk says, it strays too far from the abstraction that MemoryStream is aiming for. Specifically, the requirement of a known capacity.
The data that the replacement shall handle will in some cases be very large, but in others relatively small (and no we don’t know which it will be until its too late ;)); further, many instances of the class will be in existence at the same time.
Ultimately the work required to use MemoryMappedFiles (to determine an appropriate size for each one) would be equivalent to that of implementing TomTom’s solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:54:51+00:00Added an answer on May 31, 2026 at 1:54 pm

    Here is my implementation in case anyone needs it; I will leave this question open for a bit in case someone still responds with anything better.

    http://www.codeproject.com/Articles/348590/A-replacement-for-MemoryStream

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Like most people, I work on a data-driven object-oriented business application. I use a
Like many of you, I use ReSharper to speed up the development process. When
Like the parameter in ISNULL function? Something we can use to define: create function
Like this:(with left click or shortcut) and that would open main.xml It would really
Like the title said, .load() function won't load javascript from called page. Would be
Like when using aircrack-ng, or any program that has tables of data that constantly
Like a lot of web developers, I like to use .htaccess to direct all
Like is available via passing a string through ESQL... but not as an actual
Like there are many Applications which are just basic but you can have install
Like the title says,I would like to develop vala with vim.My productivity is badly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.