🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Opening COM port twice

#12602
From: Remy Lebeau (TeamB)
Date: Sun, 30 Nov 2003 00:44
17 lines
1620 bytes
"Denville Longhurst" <Denville@metco.co.uk> wrote in message
news:3fc8c2ee@newsgroups.borland.com...

> Is it possible for two applications to open a COM port simultaneously?

No.  Such resources can only be used by one thing at a time.

For what you ask, you will have to make it so that the application that
opens the port stores the received data somewhere and makes it available to
the other application separately.  Either set asside shared memory, or (what
I did) create a dedicated server application whose sole purpose is to access
the port and then forward the data to any other application that wants the
data via an IPC mechanism (TCP socket, names pipes, COM, etc).


Gambit
Technical Details
Message-ID: <3fc93c61$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fc8c2ee@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2de4bbff122c5d89
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-29 17:09:12 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fc8c2ee@newsgroups.borland.com>
Subject: Re: Opening COM port twice
Date: Sat, 29 Nov 2003 16:44:14 -0800
Lines: 19
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.137.149
Message-ID: <3fc93c61$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070152801 67.22.137.149 (29 Nov 2003 16:40:01 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail