Article View: borland.public.cppbuilder.nativeapi
Article #12599Re: Opening COM port twice
From: Michael Powell
Date: Sat, 29 Nov 2003 17:28
Date: Sat, 29 Nov 2003 17:28
30 lines
1875 bytes
1875 bytes
Can you be more specific? Is the first application your own? Or third-party / off-the-shelf? Sounds like maybe that application is opening with exclusive read/write access, not shared. Regards, Michael "Denville Longhurst" <Denville@metco.co.uk> wrote in message news:3fc8c2ee@newsgroups.borland.com... > Hi > > Is it possible for two applications to open a COM port simultaneously? I > have to share data coming in on a port with another application (both make > different use of the data). I have tried CreateFile using FILE_SHARE_READ > (in both apps), and using both overlapped and non-overlapped operation, but > in all cases the second application gets File Access Denied. > > If it is not possible conventionally, how do I write something like a port > monitor to achieve the same result ?? > > Many thanks for any help, > > Denville. > >
Technical Details
Message-ID:
<3fc8d676@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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 09:39:04 PST From: "Michael Powell" <powellmw@comcast.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fc8c2ee@newsgroups.borland.com> Subject: Re: Opening COM port twice Date: Sat, 29 Nov 2003 10:28:54 -0700 Lines: 32 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: 68.35.190.58 Message-ID: <3fc8d676@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070126710 68.35.190.58 (29 Nov 2003 09:25:10 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail