🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Named Events

#10632
From: Remy Lebeau (TeamB)
Date: Tue, 06 Apr 2004 02:19
33 lines
2136 bytes
"p Anders" <paul.anderson@jhuapl.edu> wrote in message
news:407202d1$1@newsgroups.borland.com...

> Can someone tell me if named events should return
> the same handle in different processes?

You are not guaranteed to get the same handle in multiple processes even
though they point to the same global object internally.  I just tested it,
some of my test processes got one memory address and others got a different
address, even though there was only 1 event involved.

> I am trying to debug an two apps that use named events for some
> communications.  I have verified the names events are created (and
> for the second app I get the ALREADY_EXISTS, as expected),
> yet the events have different handles.

That is fine.

> They don't seem to be signalling properly

You are probably using them incorrectly in general.  Please show your actual
code that is not working for you.

> so I was wondering if there's a way to tell if the events are indeed
> the same (i.e., by comparing handles or is there some other way?).

You cannot compare handles across processes.  If you truely specified
theEXACT same name for both, then you are guaranteed to get the same object
in both processes.


Gambit
Technical Details
Message-ID: <4072158a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <407202d1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,22c8c55c21bceba4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-05 19:39:30 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <407202d1$1@newsgroups.borland.com>
Subject: Re: Named Events
Date: Mon, 5 Apr 2004 19:19:09 -0700
Lines: 35
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: 67.22.138.253
Message-ID: <4072158a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081218442 67.22.138.253 (5 Apr 2004 19:27:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail