Article View: borland.public.cppbuilder.nativeapi
Article #4155Re: Locking Page in Memory
From: prunesquallor
Date: Fri, 10 Mar 2006 12:48
Date: Fri, 10 Mar 2006 12:48
19 lines
1900 bytes
1900 bytes
"Eelke" <e.klein@remove.mplussoftware.nl> wrote in message news:44112ba0$1@newsgroups.borland.com... > I had an idea that might work. The details I leave as an exercise. > > If you would use a memory mapped file the block of memory would never be > written to the swapfile. Instead windows would swap it to the file. If you > make sure you have the file open with exclusive access (no sharing) to the > file nobody else could get access to the contents and you could zero it > out when you no longer needed it. A nice idea. A skim read of: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_manamemo.asp implies that it may well work (even though it does rabbit on about the pagefile). Will investigate further - thanks. John B
Technical Details
Message-ID:
<4411756e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<440eb97d@newsgroups.borland.com> <440ec0cc@newsgroups.borland.com> <440ee584$1@newsgroups.borland.com> <4410393c$1@newsgroups.borland.com> <441046ed@newsgroups.borland.com> <44112ba0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a6a321b0cbcc9b74 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "prunesquallor" <prunesquallor@proproco.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <440eb97d@newsgroups.borland.com> <440ec0cc@newsgroups.borland.com> <440ee584$1@newsgroups.borland.com> <4410393c$1@newsgroups.borland.com> <441046ed@newsgroups.borland.com> <44112ba0$1@newsgroups.borland.com> Subject: Re: Locking Page in Memory Date: Fri, 10 Mar 2006 12:48:00 -0000 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 213.208.127.201 Message-ID: <4411756e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141994862 213.208.127.201 (10 Mar 2006 04:47:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail