Article View: borland.public.cppbuilder.nativeapi
Article #175Re: when to call MapViewOfFile()
From: Bob Gonder
Date: Tue, 01 Jul 2008 01:40
Date: Tue, 01 Jul 2008 01:40
20 lines
1560 bytes
1560 bytes
Mike Collins wrote: >What i wanted to know is if MapViewOfFile() creates a snap shot of the MMF, No, it is dynamic.... According to this: File Mapping http://msdn.microsoft.com/en-us/library/aa366556(VS.85).aspx The file exists in only one hunk of RAM (backed by physical disk space.) Through Intel CPU Magic, that one hunk of RAM can be shared at different memory addresses in different process spaces. That means if you write to some offset in your view, you are writing to real, shared RAM and it is also seen by others because *it is the same physical RAM* (Center box in the link.) I hope that clears it up, does for me :-)
Technical Details
Message-ID:
<1a1j64l87mo0gooartvnvpd9dtmemtgjmt@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<486800e2$1@newsgroups.borland.com> <eb6g641bfr1olgbgf3lqrjd0avnclmj9bo@4ax.com> <48695e63@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9e6b8470002d53ed X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <none@nowhere.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: when to call MapViewOfFile() Date: Mon, 30 Jun 2008 18:40:55 -0700 Message-ID: <1a1j64l87mo0gooartvnvpd9dtmemtgjmt@4ax.com> References: <486800e2$1@newsgroups.borland.com> <eb6g641bfr1olgbgf3lqrjd0avnclmj9bo@4ax.com> <48695e63@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.147.203 X-Trace: newsgroups.borland.com 1214876451 67.77.147.203 (30 Jun 2008 18:40:51 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail