🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17742

Memory Mapped File

#17742
From: Giovanni
Date: Tue, 04 Mar 2003 15:03
25 lines
1442 bytes
Hi all,
I have Win NT 4.0 SP 6.0a (ita)

I need to read 7-8 avi video files (dimensions around 30-200 Mb each). I use
MMF with this code:
HANDLE hFileMapping;

hFileMapping=CreateFileMapping(hFile,NULL,PAGE_READONLY,0,0,NULL);

CloseHandle(hFile);

lpMapApp = MapViewOfFile(hFileMapping,FILE_MAP_READ,0,0,0);

CloseHandle(hFileMapping);

I need to switch beetwen them without swapping ( I have 200 Mb ram memory
free).

Unfortunally my computer is swapping even if I created a mmf for ALL file.

Suggestion to avoid swapping?

Thanks

Gvl
Technical Details
Message-ID: <3e64c04a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,971de9213c29817a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-04 13:28:10 PST
Reply-To: "Giovanni" <giolaser@libero.it>
From: "Giovanni" <giolaser@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Memory Mapped File
Date: Tue, 4 Mar 2003 16:03:37 +0100
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 81.72.21.218
Message-ID: <3e64c04a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046790218 81.72.21.218 (4 Mar 2003 07:03:38 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail