Article View: borland.public.cppbuilder.nativeapi
Article #17745Re: Memory Mapped File
From: Remy Lebeau (TeamB)
Date: Tue, 04 Mar 2003 18:11
Date: Tue, 04 Mar 2003 18:11
20 lines
1398 bytes
1398 bytes
"Giovanni" <giolaser@libero.it> wrote in message news:3e64c04a$1@newsgroups.borland.com... > hFileMapping=CreateFileMapping(hFile,NULL,PAGE_READONLY,0,0,NULL); > > CloseHandle(hFile); You shouldn't close the file until after you're actually finished reading the data from it. > lpMapApp = MapViewOfFile(hFileMapping,FILE_MAP_READ,0,0,0); > > CloseHandle(hFileMapping); You shouldn't close the file mapping until after you're actually finished reading the data from it. Gambit
Technical Details
Message-ID:
<3e64ea24$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e64c04a$1@newsgroups.borland.com>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:40:49 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e64c04a$1@newsgroups.borland.com> Subject: Re: Memory Mapped File Date: Tue, 4 Mar 2003 10:11:01 -0800 Lines: 22 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: 207.175.226.26 Message-ID: <3e64ea24$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1046800932 207.175.226.26 (4 Mar 2003 10:02:12 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail