Click here to Skip to main content
15,886,101 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to write something in a special area that I created in RAM without using any disk path in a program, then i want to open it from the other program to read and change it.

MemoryMappedFile.CreateNew("Test", lenght) --> This function allows me to create a special area in RAM and as far as I know both windows and ubuntu support this function.

MemoryMappedFile.OpenExisting("Test")--> (or CreateOrOpen) This function allows me to read the information in the special field in RAM and then change the information in it if I want. Unfortunately this functions used in only Windows.

How can i solve my problem? What are the alternatives of OpenExisting for Linux-Ubuntu? If there is no solution for this situation , can you recommend different library?


What I have tried:

I could not find a solution for this topic.
Posted
Updated 13-Apr-21 21:50pm
Comments
[no name] 13-Apr-21 19:15pm    
Programs don't share memory; you need pipes or something.
CanSyr 14-Apr-21 2:17am    
Sorry , i mean two different codes in two different projects. It is working in Windows because I can use OpenExisting or CreateOrOpen to open the RAM space I already specified ("Test"). These functions are only available for Windows but i have to do same thing in Ubuntu. I want help for this issue.
[no name] 14-Apr-21 15:32pm    
You write an interface to use a different technique on Ubuntu; or adopt a technique that works on both. (2 different "projects" means little. If they're both exe's, it's still 2 "programs", and they don't share memory; unless one is used as a dll; then is a matter of passing references)

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900