Re: Understanding Object Namespaces
- From: "David J. Craig" <dave@xxxxxxxxxxxxx>
- Date: Wed, 8 Aug 2007 22:05:12 -0700
I would look for documents about the isolation of services from the desktop
in Vista. Maybe it extends to other things too.
--
David J. Craig
Engineer, Sr. Staff Software Systems
Broadcom Corporation
"Le Chaud Lapin" <jaibuduvin@xxxxxxxxx> wrote in message
news:1186635069.407832.202330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a client/server application where the client and server reside
in the same machine as two EXE's communicating via shared memory and
synchronization.
I implement my shared memory in a DLL using the /SECTION attribute of
the Linker against a shared section.
These EXE's have been communicating this way for years over all
versions of NT-class Windows except Vista, which did not allow it to
work.
Yes, I do understand the need for Global and Local prefixes, and I
have WinObj so I can see where the namespace been changed for the
inter-process synchronization primitives that facilitate the IPC
between the EXE's. :) I am prefixing the name of every synchronization
object with Global\ to for them to be registered at the root
BaseNamedObjects, and that works.
The problem is the DLL with the shared section.
1. If I run both EXE's as services, I *think* there is no problem for
them to communicate. The both see the same shared section.
2. If run one EXE as service, and other as normal app under my login,
the EXE's cannot communicate. Both EXE's do appear to be loading the
DLL, but one of them sees a 0 flag when it should see a 1, as set by
the other EXE. I verifed, of course, that the DLL is in the same one,
in C:\WINDOWS\SYSTEM32, where it belongs.
3. If I run both EXE as normal applications, there is no problem for
them to communicate.
So the problem seems to be the shared section in the DLL getting
duplicate?
Any help appreciated.
-Le Chaud Lapin-
.
- Follow-Ups:
- Re: Understanding Object Namespaces
- From: Chuck Chopp
- Re: Understanding Object Namespaces
- References:
- Understanding Object Namespaces
- From: Le Chaud Lapin
- Understanding Object Namespaces
- Prev by Date: Understanding Object Namespaces
- Next by Date: Non-Service EXE Early Loading, Always Running
- Previous by thread: Understanding Object Namespaces
- Next by thread: Re: Understanding Object Namespaces
- Index(es):
Relevant Pages
|