🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MUTEX Objects

#14441
From: PaulMac
Date: Thu, 14 Aug 2003 14:29
37 lines
2371 bytes
Leo,

One other thing.  I just copied and executed the code to detect if terminal
services are enabled from MSDN.  It reports that they are not running.  Is
there anything else that can effect kernel object namespaces?

This is all quite strange because there was no problem with the mutexes the
last time the applications were tested (about 3 months ago).

Paul Mac


"Leo Havm�ller" <leh@-nospam-rtx.dk> wrote in message
news:3f3b244f@newsgroups.borland.com...
> "PaulMac" <machiave@i-stat.com> wrote in message
> news:3f3a81c8@newsgroups.borland.com...
> > In using MUTEX objects, I came across something unexpected.  Given a
> Windows
> > GUI app and a Service app, if the same named MUTEX is accessed, both
> > applications can acquire it when the other has already done so.
However,
> if
> > both applications are service apps or both are GUI apps, then the proper
> > synchronization occurs.
> >
> > It has been my understanding that MUTEXes, being kernel objects, are
> > "global" to a system.  So, why am I seeing this behavior?
>
> The GUI app lives in a windows station whereas the service does not.
> You need to add "Global\" to the mutex name. See "terminal services"
under:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createmutex.asp
>
> Leo Havm�ller.
>
>
Technical Details
Message-ID: <3f3b9cd9$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!priapus.visi.com!news-out.visi.com!petbe.visi.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f3a81c8@newsgroups.borland.com> <3f3b244f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,1fbb91fdbd389c0b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-14 07:40:42 PST
From: "PaulMac" <machiave@i-stat.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f3a81c8@newsgroups.borland.com> <3f3b244f@newsgroups.borland.com>
Subject: Re: MUTEX Objects
Date: Thu, 14 Aug 2003 10:29:46 -0400
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.162.128.158
Message-ID: <3f3b9cd9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060871385 65.162.128.158 (14 Aug 2003 07:29:45 -0700)
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!priapus.visi.com!news-out.visi.com!petbe.visi.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail