Article View: borland.public.cppbuilder.nativeapi
Article #99Memory mapped files in a Service
From: Colin B Maharaj
Date: Thu, 26 Jun 2008 10:32
Date: Thu, 26 Jun 2008 10:32
28 lines
1792 bytes
1792 bytes
Hi folks, I recently had to fix a bug where my memory mapped file that was running in my service application was not visible to my foreground application. To fix this I had to add Global to the name like this..... From: "MMAPFILE" To: "Global\\MMAPFILE" Had to do this to both my service and foreground application. Now in some cases it works fine, e.g. in my development environment it was not necessary for me to make these changes. It seems to be a namespace issue http://blogs.msdn.com/maartenb/archive/2008/05/07/memory-mapped-files-from-xp-to-vista.aspx In this article they articulate the problem - but with vista, however it also applies, "at times", to XP services. The real problem being here is "at times". Question: (Finally) How do I know that the operating system will run my service and create memory mapped files within a separate namespace or not. thanks..
Technical Details
Message-ID:
<48637046$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ef43529cc999a6b2,start X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 26 Jun 2008 06:32:39 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Memory mapped files in a Service Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080626-0, 06/26/2008), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 190.58.98.8 Message-ID: <48637046$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214476358 190.58.98.8 (26 Jun 2008 03:32:38 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail