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 6742711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:52:33+00:00 2026-05-26T11:52:33+00:00

I am sharing a memory data between multiple processes as per design. As per

  • 0

I am sharing a memory data between multiple processes as per design.

As per design the application requires multiple memory files, like each process requires one memory map file. But some processes needs less memory mapped file like it can be 10KB or less. and some processes required more than 1mb memory file. once the processes task over, then i will use the same memory mapped file for some other process.

In this scenario how i can increase the memory mapped file size based on the process request. Like once i create memory mapped file using CreateFileMapping. how i can increase the memory size or decrease the size.

also i have another sub question, how to clean this data without closing this memory mapped file.
please share if any one knows.

thanks a lot in advance.
hara

  • 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-26T11:52:34+00:00Added an answer on May 26, 2026 at 11:52 am

    No – you can’t increase the mapping after creation (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa366537%28v=vs.85%29.aspx)!

    The sizes you describe don’t sound problematic so I would just go with one “big enough size”.

    To clean the data you can use for example memset () (see http://msdn.microsoft.com/en-us/library/1fdeehz6.aspx or http://www.cplusplus.com/reference/clibrary/cstring/memset/) or ZeroMemory() (which is just a Windows API macro mapping to memset).

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

Sidebar

Related Questions

I am sharing some data across multiple processes by using shared memory; I use
I would like to have a manager process sharing graphs via shared memory, read-only
I am sharing some memory between processes, using the boost library; boost::interprocess::managed_shared_memory managed_shm(boost::interprocess::open_or_create, shm,
I want to share a data with multiple processes. My first attempt is to
Helllo, I would like to share small amounts of data (< 1K) between python
I am sharing some memory between C++ and PHP At the PHP end I
How does sharing memory works in DLLs? When DLL is attached to process, it
Update: I probably confused memory usage issues with the UI sharing same thread as
What is recommended for sharing configuration data amongst several related applications in a winforms
I've been sharing image lists across multiple forms in Delphi for years now. I

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.