473,756 Members | 5,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle Memory Mapped files with C#?

Is there any support for memory mapped files in the .Net framework? I have
an application that would be made much easier if I had an easy way to read
an existing memory mapped file generated by another application, and could
write another MMF back in response...

Any and all ideas welcomed.

Thanks in advance,

Joel
Nov 15 '05 #1
2 2884
AFAIK .NET has no support for MMF, so you can write managed wrapper around
win32 api for MMF with the help of P/Invoke

"Joel Foner" <jo********@fon erassoc.remove_ me_to_reply.com > wrote in message
news:7_******** ***********@sea-read.news.verio .net...
Is there any support for memory mapped files in the .Net framework? I have
an application that would be made much easier if I had an easy way to read
an existing memory mapped file generated by another application, and could
write another MMF back in response...

Any and all ideas welcomed.

Thanks in advance,

Joel

Nov 15 '05 #2
On 27-Feb-2004, "Vadym Stetsyak" <pd****@ukr.net > wrote:
AFAIK .NET has no support for MMF, so you can write managed wrapper around
win32 api for MMF with the help of P/Invoke


Thanks.

Joel
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2424
by: Peter Nolan | last post by:
Hi All, I have some software that currently loads database tables into sorted arrays in memory to be binary searched by processes. (Long story as to why it does this..) Each process must either read the data from the in memory array or from the database itself if the table is too large to be loaded into memory. (2GB is usually the limit because the array is indexed by a 32 bit signed integer. I have never had one of these tables go over...
4
5805
by: Sandeep Chikkerur | last post by:
HI, I am writing a an ATL COM component (a "dll" file). This file calls an executable. That executable is created from the "C" language. (Compiled on Windows platform. Using Microsoft Visual Studio to write the "C" code) This executable has to share some data with the dll. So, the shared memory is the best solution. But I don't know how to create a shared memory in "C". Any inputs on this would be of great help
7
5844
by: ATS | last post by:
HOWTO Make a C# UserContol Memory Map to a C++/MFC/EXE Please help, I have a UserControl that I want to have "talk" to a C++/MFC/EXE program that is already running via a memory map. The C++/MFC/EXE app is using the traditional WIN32 commands like OpenFileMapping
3
4803
by: James Aguilar | last post by:
Oh wise readers of comp.lang.python, Lend a newbie your ears. I have read several old articles from this group about memory mapping and interprocess communication and have Googled the sh** out of the internet, but have not found sufficient to answer my questions. Suppose that I am writing a ray tracer in Python. Well, perhaps not a ray tracer. Suppose that I am writing a ray tracer that has to update sixty times a second (Ignore...
9
18376
by: Maxwell2006 | last post by:
Hi, Is there a concept of shared named memory in .NET to allow multiple program use the name and then set/retrieve values? Thank you, Alan
1
2175
by: Carl Mackey | last post by:
hi, i'm new to this list and new to python as well. i have a question on the memory mapped file ability python has. when i use a mmap on a file, will it copy the whole thing to ram or just whatever part of it i'm working on? basically, i'm wondering if it would be ok for me to have multiple mmap's open on very large files as i read or write from them.
13
2759
by: Samshayam | last post by:
I have come across the application of placement new in memory mapped i/o in a number of books.I am not able to understand it completely, may be becaues of my lack of knowledge with memory mapped i/o.In my understanding it is a system where I/O devices are treated as memory locations and are addressed using same number of address lines.How an object placed at a specific location makes a difference to this?Some body pls clarify?
1
5128
by: PMarino | last post by:
I'm an old Win32 guy, so I may be completely off-base here, but is there any support for Memory-mapped files in C#? I'm actually trying to get around a limitation with Windows Authorization Manager. Right now, the security information contained in AzMan is either stored in Active Directory or an XML file. I'd like to be able to store it in a database, and populate a memory-mapped file (or it's equivalent) from the DB when the file is...
12
1627
by: Clement | last post by:
Can i place variables or arrays in Disk instead of main memory........
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10040
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9873
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.